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 role reset #1019

Merged
merged 5 commits into from
Aug 31, 2021
Merged

Fix role reset #1019

merged 5 commits into from
Aug 31, 2021

Conversation

zhen0
Copy link
Member

@zhen0 zhen0 commented Aug 31, 2021

PR Checklist:

  • add a short description of what's changed to the top of the CHANGELOG.md
  • add/update tests (or don't, for reasons explained below)

Describe this PR

Sets the default role in created instead of on the roles apollo query to prevent the selected role resetting when the query refetches
Stops roles resetting to admin in the team member invitation dialog select
Closes #1018

@zhen0 zhen0 changed the title add set default role to created instead of on apollo query Fix role reset Aug 31, 2021
@zhen0 zhen0 marked this pull request as ready for review August 31, 2021 15:33
@@ -230,7 +235,6 @@ export default {
pollInterval: 10000,
Copy link
Member Author

Choose a reason for hiding this comment

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

I think the best fix is to move the where we set the role but could/should we also extend this poll interval? Can't remember if there was a reason we need to be polling so frequently here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we had this at 60 s previously but it was leading to some confusion when joining teams/making updates.

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.

BUG: Role Select resets prematurely on members page
2 participants