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

NOISSUE - Fix Share Thing To Add External To Request #1886

Merged
merged 3 commits into from
Aug 9, 2023

Conversation

rodneyosodo
Copy link
Member

Signed-off-by: rodneyosodo blackd0t@protonmail.com

What does this do?

Enables sharing things on SDK level

Which issue(s) does this PR fix/relate to?

No issue

List any changes that modify/break current functionality

None

Have you included tests for your changes?

No

Did you document any new/modified functionality?

No

Notes

Add external field to policies. This will enables us to share things between users

@rodneyosodo rodneyosodo requested a review from a team as a code owner August 8, 2023 18:15
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #1886 (1f53d83) into master (b4b625d) will decrease coverage by 0.02%.
Report is 1 commits behind head on master.
The diff coverage is 70.58%.

@@            Coverage Diff             @@
##           master    #1886      +/-   ##
==========================================
- Coverage   67.12%   67.11%   -0.02%     
==========================================
  Files         118      118              
  Lines        9011     9020       +9     
==========================================
+ Hits         6049     6054       +5     
- Misses       2333     2337       +4     
  Partials      629      629              
Files Changed Coverage Δ
pkg/sdk/go/policies.go 66.39% <ø> (ø)
users/clients/service.go 60.14% <50.00%> (-0.31%) ⬇️
pkg/clients/postgres/clients.go 79.06% <100.00%> (ø)
pkg/sdk/go/things.go 78.94% <100.00%> (+0.15%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
@@ -21,6 +21,7 @@ type Policy struct {
Subject string `json:"subject"`
Object string `json:"object"`
Actions []string `json:"actions"`
External bool `json:"external,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

There probably should be a comment explaining what this External means, as here it looks like it means something like "external policy"

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit 51998d7 into absmach:master Aug 9, 2023
3 of 4 checks passed
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.

3 participants