-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#62386] Project attribute list entries not displayed when applied as filter in project list #18530
base: dev
Are you sure you want to change the base?
Conversation
957321e
to
f80b39a
Compare
…r the autocompleters. Previously the inactive filter was passed to the additional_attributes, this leading to values not being initialized correctly from the active filters.
f80b39a
to
20f902b
Compare
7deb989
to
133647e
Compare
86dea27
to
a4c5531
Compare
…e loaded before checking for missing elements.
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
@@ -151,9 +151,6 @@ describe('autocompleter', () => { | |||
const inputElement = inputDebugElement.nativeElement as HTMLInputElement; | |||
|
|||
fixture.detectChanges(); | |||
tick(); | |||
expect(getOptionsFnSpy).not.toHaveBeenCalled(); | |||
tick(50); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@myabc Can I ask you kindly to check whether this testcase is still valid. The component has changed a bit, which causes the spec to fail. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values now show up and I really appreciate you removing duplicated methods, @dombesz.
So I feel bad telling you that there still appears to be a bug in here. I didn't look into the why but this is how to reproduce it:
- Have two list custom fields
- Save a query with one of those custom fields as a filter
- After saving, add the second custom field as a filter.
- Try to save.
The former filter seems to not have its value set thoroughly so the saving fails.
def date_filter?(filter) | ||
filter[:"data-filter-type"] == "date" | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for cleaning up the duplicated methods. I wasn't aware of those. How about we open a code maintenance ticket to move even more over to the module, e.g. date_time_filter?
but also the set_advanced_filter
method?
Thanks @ulferts, I bumped into this bug earlier and according to my investigations, it is not a related bug. However since I'm already doing this bugfix, I would solve the issue in this PR. |
Ticket
https://community.openproject.org/work_packages/62386
What are you trying to accomplish?
Load the autocompleter values of project filters from saved queries. Additionally, fix 4 flaky specs by using synchronous matchers instead of asynchronous ones.
What approach did you choose and why?
The solution consists of 2 parts:
The flaky specs fixed:
Merge checklist