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

Rename _router property to _authRouter to avoid conflicts #1900

Conversation

backspace
Copy link
Contributor

@backspace
Copy link
Contributor Author

It appears that if you restart a job that’s part of a stage that failed and it succeeds on the second attempt, the next stage doesn’t run 😬

@pichfl
Copy link
Contributor

pichfl commented Jul 16, 2019

@backspace I restarted the build on Travis 👍

Copy link
Collaborator

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

The issue is that routes by default now have a _router property and we should avoid overriding that with whatever we want to assign to it. IMHO instead of changing the way we assign that property we should rename it to something that does not conflict with the existing _router property. I would propose renaming it to e.g. _authRouter and keeping the existing computed property code minimize the necessary code changes.

@backspace
Copy link
Contributor Author

👍 understood, done, seems to be working!

@Turbo87 Turbo87 force-pushed the authenticated-route-mixin-_router-override branch from e7bc593 to 84c076d Compare July 17, 2019 14:57
@Turbo87 Turbo87 changed the title Change property to be overridable Rename _router property to _authRouter to avoid conflicts Jul 17, 2019
@Turbo87 Turbo87 merged commit 21dfaa8 into mainmatter:master Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants