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

Fix sidebar taxon showing #828

Merged
merged 2 commits into from
Mar 14, 2018
Merged

Fix sidebar taxon showing #828

merged 2 commits into from
Mar 14, 2018

Conversation

tijmenb
Copy link
Contributor

@tijmenb tijmenb commented Mar 14, 2018

The recent changes to the taxonomy exposed that we have duplicated logic between this application and the components. At the moment this app thinks that there are taxons, so it tries to show the sidebar. However, the govuk_component/taxonomy_sidebar component doesn't think there are taxons, because it only looks at the live ones.

This is a temporary fix, we will re-architect this so that the logic is simple and in only one place. I'm also sad about the lack of failing tests for this.

Before

screen shot 2018-03-14 at 15 35 00

After

screen shot 2018-03-14 at 15 34 49

tijmenb added 2 commits March 14, 2018 15:30
One of the hard things in debugging the problems with the sidebar was
that we couldn't determine what the page was supposed to show. This
would have been very helpful.
The recent changes to the taxonomy exposed that we have duplicated
logic between this application and the components. At the moment this
app thinks that there are taxons, so it tries to show the sidebar.
However, the `govuk_component/taxonomy_sidebar` component *doesn't*
think there are taxons, because it only looks at the live ones.

This is a temporary fix, we will re-architect this so that the logic is
simple and in only one place.
Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tijmenb tijmenb merged commit 26ac019 into master Mar 14, 2018
@tijmenb tijmenb deleted the fix-sidebar-taxon-showing branch March 14, 2018 15:49
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.

2 participants