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

Add catalog read-only sharing to all organizations #559

Merged
merged 34 commits into from
Nov 14, 2023

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Mar 17, 2023

Add types and functions to handle read-only catalog sharing (Address Issue 987)

  • AdminCatalog.SetReadOnlyAccessControl
  • Catalog.SetReadOnlyAccessControl
  • AdminCatalog.IsSharedReadOnly
  • Catalog.IsSharedReadOnly

Note: setting read-only access control for other organizations is the result of two API calls: the first one is an access control request with all parameters set to their zero values, and the second one is a /action/publish (not the same as /action/publishToExternalOrganizations, but will set the catalog's IsPublished status)

Giuseppe Maxia added 4 commits March 17, 2023 09:10
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
* AdminCatalog.SetReadOnlyAccessControl
* Catalog.SetReadOnlyAccessControl
* AdminCatalog.IsSharedReadOnly
* Catalog.IsSharedReadOnly

Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder self-assigned this Mar 17, 2023
Giuseppe Maxia added 3 commits March 21, 2023 17:04
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@juanfont
Copy link

juanfont commented Mar 23, 2023

I confirm this is working :)

Any chance it will be merged soon?

Giuseppe Maxia added 15 commits July 18, 2023 22:41
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder marked this pull request as ready for review October 1, 2023 16:21
@dataclouder dataclouder requested a review from adezxc as a code owner October 1, 2023 16:21
Copy link

@adezxc adezxc left a comment

Choose a reason for hiding this comment

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

Tested locally, worked great! Just some general questions

govcd/access_control.go Show resolved Hide resolved
govcd/access_control.go Show resolved Hide resolved
govcd/catalog_test.go Show resolved Hide resolved
.changes/v2.20.0/559-features.md Outdated Show resolved Hide resolved
Giuseppe Maxia added 3 commits October 2, 2023 13:52
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Giuseppe Maxia added 5 commits October 4, 2023 15:10
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Just some polishing asks :)

govcd/access_control.go Outdated Show resolved Hide resolved
types/v56/types.go Outdated Show resolved Hide resolved
govcd/access_control.go Outdated Show resolved Hide resolved
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM

Giuseppe Maxia added 2 commits October 26, 2023 20:24
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
Signed-off-by: Giuseppe Maxia <gmaxia@vmware.com>
@dataclouder dataclouder merged commit 00d27a5 into vmware:main Nov 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants