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

feat(api): add Token.perm_manage_tokens and surrounding functionality #469

Merged
merged 5 commits into from
Nov 10, 2020

Conversation

peterthomassen
Copy link
Member

The migration sets perm_manage_tokens = True for all existing tokens,
and then sets the default to False.

Related: #347


Todos:

  • docs update
  • GUI update

It may also be worthwhile to discuss why I called the field perm_manage_tokens (I figured it would play along best with the other things we're going to add, but that we should talk about).

@peterthomassen peterthomassen force-pushed the 20201106_token_perm_manage_tokens branch 2 times, most recently from 12eb65f to 40a0dfa Compare November 9, 2020 15:12
@peterthomassen peterthomassen force-pushed the 20201106_token_perm_manage_tokens branch from 40a0dfa to b4e0825 Compare November 9, 2020 17:23
@peterthomassen
Copy link
Member Author

Docs update and GUI adjustments are done. Ready for review!

@peterthomassen peterthomassen force-pushed the 20201106_token_perm_manage_tokens branch 7 times, most recently from 01ef059 to dfa9918 Compare November 9, 2020 17:49
Copy link
Contributor

@nils-wisiol nils-wisiol left a comment

Choose a reason for hiding this comment

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

very nice. just two nits :)


``token``
:Access mode: read-once
:Type: string (28 characters)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's be not too specific with details here - this value could change in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

done


<script>
export default {
name: 'Checkbox',
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Member Author

Choose a reason for hiding this comment

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

done

The migration sets `perm_manage_tokens = True` for all existing tokens,
and then sets the default to `False`.

Related: #347
@peterthomassen peterthomassen force-pushed the 20201106_token_perm_manage_tokens branch from 010a29d to f88acff Compare November 10, 2020 14:50
@peterthomassen peterthomassen merged commit f88acff into master Nov 10, 2020
@peterthomassen peterthomassen deleted the 20201106_token_perm_manage_tokens branch November 10, 2020 15:02
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