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

Conditional access restriction update #2857

Merged
merged 4 commits into from
Feb 11, 2021
Merged

Conditional access restriction update #2857

merged 4 commits into from
Feb 11, 2021

Conversation

gknisely
Copy link
Member

@gknisely gknisely commented Feb 10, 2021

Issue

added support for destination for conditional access restrictions

Tasklist

  • Add tests
  • Add #fixes with the issue number that this PR addresses
  • Update the docs with any new request parameters or changes to behavior described
  • Update the changelog

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

const gurka::ways ways = {
{"AD",
{{"highway", "service"},
{"motorcar", "no"},
{"bicycle", "yes"},
{"foot", "yes"},
{"bicycle:conditional", timeDenied},
{"foot:conditional", timeAllowed}}},
{"bicycle:conditional", yesAllowed},
Copy link
Contributor

Choose a reason for hiding this comment

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

The restriction changed from "denied" to "allowed" but none of the tests below needed to be changed? So for the time it was denied would need to have its test changed, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

@mandeepsandhu before we only tested for the yes attribute. So I added the others in randomly for the tests regardless of the mode as it hits the same code. If we don't encounter one of those values we default to denied.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. thx

@gknisely gknisely merged commit 68f4fa3 into master Feb 11, 2021
@gknisely gknisely deleted the conditional_updates branch February 22, 2024 13:28
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.

None yet

2 participants