Skip to content

Commit

Permalink
Removes force option from config refresh API
Browse files Browse the repository at this point in the history
Previously, we use to skip adding scope for user if the user doesn't
exist in db and as checksum is stored to avoid re-reading of config file,
force option was required to delete the checksum and then read the config
file to add scope for users.
Now, as we are creating a new record for user if it doesn't exist, the
force is option is not longer required. hence removing it.

Signed-off-by: Shivam Mukhade <smukhade@redhat.com>
  • Loading branch information
SM43 authored and tekton-robot committed Mar 10, 2021
1 parent d29cf3d commit df6388c
Show file tree
Hide file tree
Showing 15 changed files with 357 additions and 625 deletions.
3 changes: 1 addition & 2 deletions api/design/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ var _ = Service("admin", func() {
})
Payload(func() {
Token("token", String, "User JWT")
Attribute("force", Boolean, "Force Refresh the config file")
Required("token", "force")
Required("token")
})
Result(func() {
Attribute("checksum", String, "Config file checksum")
Expand Down
2 changes: 0 additions & 2 deletions api/gen/admin/service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 3 additions & 13 deletions api/gen/http/admin/client/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions api/gen/http/admin/client/encode_decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions api/gen/http/admin/client/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 2 additions & 17 deletions api/gen/http/admin/server/encode_decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 2 additions & 20 deletions api/gen/http/admin/server/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 20 additions & 22 deletions api/gen/http/cli/hub/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/gen/http/openapi.json

Large diffs are not rendered by default.

Loading

0 comments on commit df6388c

Please sign in to comment.