-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove subscribe to feed link for licence finder #3097
Conversation
Allows us to check for the licence finder beyond the QueryBuilder class. The ContentItem model also seems a more appropriate place to verfiy the exact finder content item..
The plan is to remove the feed links from all finders, unless we gain evidence that it is needed. Until this decision is made, we don't want to introduce the feature for the new licence finder. A new generalised method could be implented (not use `is_licence_transaction?`) if we wanted to do this for a subset of finders, vs all.
f42d4d0
to
c9fccd5
Compare
The `LiveSearch` module would not be initialised if $atomAutodiscoveryLink returns a falsey value. Since the subscribe to feed link is removed, this is now an optional argument in `application.js`. The `live_search.js` module is updated to check if `$atomAutodiscoveryLink` is set before trying to interact with it.
…ink is set to null Since the `$atomAutodiscoveryLink` is now optional, we still want to ensure that all of the existing functionality works as expected.
Query: Has this been captured as tech debt so we don't forget to remove it later? Or is the removal likely to involve working in the same space anyway? |
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.
Looks okay to me (seconding Max's comment, though)
When the decision on feed links is decided then the changes will take place in the same part of the codebase @maxgds. A tech debt card does sound like a good idea though so removing the feed link doesn't slip from our (or another teams) radar. We could either create a general tech debt card, or ensure that the team leading on the removal (Kuba's team?) has it tracked on their board? |
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.
All looks fine and works as expected for me 👍
Collaborated with @MartinJJones for this piece of work 🙌
The plan is to remove the feed links from all finders, unless we gain
evidence that it is needed. Until this decision is made, we don't want to
introduce the feature for the new licence finder.
We've also had to update the JS to keep the live search feature working,
as removing the link removed this functionality. We've now added JS tests
to ensure the feature works when the feed link isn't present.
Trello:
https://trello.com/c/9RFdV1KK/2094-remove-feed-link-from-only-the-new-licence-finder
Visual Changes
Follow these steps if you are doing a Rails upgrade.