Skip to content

Conversation

@nabim777
Copy link
Collaborator

@nabim777 nabim777 commented Dec 2, 2025

Description

This PR fixes a misleading message that appears in the option field, such as type, status, assignee during work package creation.

Steps to reproduce

Step 1: Open the work package creation model
Step 2: Fill up the project field
Step 3: In type field, try to fill with value that does not exist (you can try notexist)

Screenshot from 2025-11-27 14-28-18

Related Issue or Workpackage

Screenshots (if appropriate):

Before

when the project field is filled, then fill up the type , status and assignee with notexist value

Fields screenshot
type Screenshot from 2025-11-27 14-28-18
status Screenshot from 2025-12-03 14-31-29
assignee Screenshot from 2025-12-03 14-33-03

After

when the project field is filled, then fill up the type , status and assignee with notexist value

Fields screenshot
type Screenshot from 2025-12-03 14-53-30
status Screenshot from 2025-12-03 14-54-37
assignee Screenshot from 2025-12-03 14-54-50

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Updated CHANGELOG.md file

@nabim777 nabim777 force-pushed the fix/options branch 2 times, most recently from 8419056 to 02be993 Compare December 3, 2025 08:22
Signed-off-by: nabim777 <[email protected]>
if (this.project.label === null) {
return t('integration_openproject', 'Please select a project first!')
}
return t('integration_openproject', `No matching ${fieldName} found!`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fieldName is not translatable. Please use messages store.
https://github.com/nextcloud/integration_openproject/blob/master/src/constants/messages.js

Comment on lines 620 to 623
if (this.project.label === null) {
return t('integration_openproject', 'Please select a project first!')
}
return t('integration_openproject', `No matching ${fieldName} found!`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (this.project.label === null) {
return t('integration_openproject', 'Please select a project first!')
}
return t('integration_openproject', `No matching ${fieldName} found!`)
if (this.project.label === null) {
return message.pleaseSelectProject
}
if (fieldName === 'status') {
return message.noMatchingStatusFound
} else if (fieldName === 'type') {
return message.noMatchingTypeFound
}
...

CHANGELOG.md Outdated
### Fixed
- Fix: Work package creation with a non-existent project [#923](https://github.com/nextcloud/integration_openproject/pull/923)
- Fix: Project Value in the field could not be removed [#923](https://github.com/nextcloud/integration_openproject/pull/923)
- Fix: misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fix: misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924)
- Fix: Misleading mesesage in select field during wp creation [#924] (https://github.com/nextcloud/integration_openproject/pull/924)

})

const input = wrapper.find(inputSelector)
await input.setValue('non-existent-assignee')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
await input.setValue('non-existent-assignee')
await input.setValue('non-existent-search')

Signed-off-by: nabim777 <[email protected]>
@nabim777 nabim777 requested a review from saw-jan December 4, 2025 06:21
@nabim777 nabim777 force-pushed the fix/options branch 3 times, most recently from 34867dd to da691d3 Compare December 4, 2025 07:09
Signed-off-by: nabim777 <[email protected]>
Signed-off-by: nabim777 <[email protected]>
@nabim777 nabim777 merged commit dc3a633 into release/2.10 Dec 4, 2025
10 checks passed
@nabim777 nabim777 deleted the fix/options branch December 4, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants