Skip to content
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

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

1pretz1
Copy link
Contributor

@1pretz1 1pretz1 commented Jun 30, 2023

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

Visible Removed (Licence Finder)
subscribe-to-feed-footer subscribe-to-feed-removed-top
subscribe-to-feed-head subscribe-to-feed-footer-removed

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

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..
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3097 June 30, 2023 12:02 Inactive
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.
@1pretz1 1pretz1 force-pushed the remove-subscribe-to-feed-link branch from f42d4d0 to c9fccd5 Compare June 30, 2023 12:42
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3097 June 30, 2023 12:43 Inactive
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.
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3097 July 4, 2023 10:35 Inactive
…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.
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3097 July 11, 2023 12:37 Inactive
@1pretz1 1pretz1 requested a review from maxgds July 11, 2023 13:17
@maxgds
Copy link
Contributor

maxgds commented Jul 11, 2023

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?

Copy link
Contributor

@KludgeKML KludgeKML left a 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)

@1pretz1
Copy link
Contributor Author

1pretz1 commented Jul 11, 2023

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?

Copy link
Contributor

@jon-kirwan jon-kirwan left a 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 👍

@1pretz1 1pretz1 merged commit df02000 into main Jul 14, 2023
7 checks passed
@1pretz1 1pretz1 deleted the remove-subscribe-to-feed-link branch July 14, 2023 12:40
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.

6 participants