-
Notifications
You must be signed in to change notification settings - Fork 225
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
CMR-9569: Update the dataCenter to keyword for generating proper organization facets. #1700
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1700 +/- ##
=======================================
Coverage 91.94% 91.94%
=======================================
Files 725 725
Lines 19349 19349
Branches 4562 4562
=======================================
Hits 17790 17790
Misses 1423 1423
Partials 136 136 ☔ View full report in Codecov by Sentry. |
This feels like an unnecessary change. The ticket and even this PR acknowledge there is a bug in CMR. EDSC shouldn't be providing a different search experience than anyone else querying CMR, so if their dataCenter parameter isn't working correctly for us, it isn't working correctly for anyone else and that is where it needs to be fixed.
|
I hear your argument, but I don't think this is unnecessary at all. The issue at heart is that for some reason The change to keyword as it stands now, yields exactly what is expected in the facets. Couple this with the fact that the collections results also use a |
The problem is that changes to CMR will result in different values over time and we wont know to expect it. Additionally, using keyword isn't great because the purpose of a portal is scope the EDSC experience and allow users to then run searches. If we hijack the search bar as part of the portal, the users will not be able to filter any further unless they restrict their usage to facets, temporal and spatial. Any time we are seeing issues related to the results coming back from CMR, we need to file tickets against CMR. Humanizers and facets have seen their fair share of bugs throughout the years, and we need to continue to address them rather than obscure them with (even valid or functional) work arounds. |
When CMR has a bug the bug gets fixed in CMR. EDSC strives to not put bandaids on CMR bugs because that means a different quality of product is delivered depending on which system you are using.
Keyword searches on collections are not meant to be the same approach as facets, or portals. They are broad keyword searches meant for ease of use. We do not want to use broad searches for portals. |
I think the part that seems to be missing here, is that the current strategy now does not do what you think it does. It does not appear to do some query a kin to |
What you are asking for is nearly a complete reshaping of how v2 facets handle organizations as a whole. Which is has far more downhill impact that I may not have the scope to know how it will roll downhill? I think there has to be a trade off for bugs that have persisted for years, and a fix. For the latter, I am saying that a portal config right now, appears to just do a keyword search to return the collections. The facets are the thing that are not doing that. |
Overview
The the query metric we currently used failed to be processed by the CMR due dataCenter itself not resolving to attribute.
Changed the query to use portal config value as a keyword search instead. This works and generates the correct organizations. (To me 😬)
What is the feature?
Update the way we query ES for portal collection data.
What is the Solution?
Using the keyword value over the dataCenter value.
What areas of the application does this impact?
All portals that had their config changed.
Testing
Reproduction steps
Checklist