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

Update tracking link #2101

Merged
merged 2 commits into from
May 27, 2021
Merged

Update tracking link #2101

merged 2 commits into from
May 27, 2021

Conversation

chris-gds
Copy link
Contributor

@chris-gds chris-gds commented May 27, 2021

What?

Adjusting the shape of the tracking attribute so once slimmer merges layout_footer with the public_layout it gets combined correctly.

Why?

Failing e2e tests on this PR revealed an issue related duplicate: data-track-category on the same node. It appears as slimmer tries to merge the footer gem with the public layout gem it doesn't combine the two duplicate attributes correctly into one, resulting in a duplication and then an e2e error.

Visual Changes

No visual changes.

Anything else?

Maintains tracking attribute when used as stand alone as to not impact other uses

Related file: within public_layout

Replicating the e2e issue locally to debug involved:

  • using the local gem within static
  • using the local version of static and running w/ ./startup.sh
  • then RACK_ENV=development ./startup.sh --live within frontend

@bevanloon bevanloon temporarily deployed to govuk-publis-adjust-tra-8xbtwk May 27, 2021 13:53 Inactive
@bevanloon bevanloon temporarily deployed to govuk-publis-adjust-tra-8xbtwk May 27, 2021 14:00 Inactive
@chris-gds chris-gds requested a review from injms May 27, 2021 14:17
@chris-gds chris-gds marked this pull request as ready for review May 27, 2021 14:17
Chris Yoong added 2 commits May 27, 2021 16:38
Adjusting the shape of the tracking attribute so once slimmer merges it with the "page_layout" gem it gets combined correctly.
@bevanloon bevanloon temporarily deployed to govuk-publis-adjust-tra-8xbtwk May 27, 2021 15:41 Inactive
@chris-gds
Copy link
Contributor Author

chris-gds commented May 27, 2021

@injms can you hit merge when free as i don't have the power auth

Ah I do 🚀

@chris-gds chris-gds merged commit 0dd3a4a into master May 27, 2021
@chris-gds chris-gds deleted the adjust-tracking-data branch May 27, 2021 15:44
chris-gds pushed a commit that referenced this pull request May 27, 2021
- Update shape of tracking link ([PR #2101](#2101))
This was referenced May 27, 2021
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