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

Visibility update #33

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

diveshjain-phy
Copy link

This pull request introduces visibility management features in the code:

  1. Client: Added CLI and API client support for managing visibility of products and collections (set-visibility commands and methods).
  2. API: Extended API endpoints to support visibility updates for products and collections.
  3. Service: Updated the service layer to handle visibility changes without disrupting collections or versioning.
  4. Web: Updated the web interface to view visibility settings.

diveshjain-phy and others added 19 commits December 18, 2024 11:29
- Introduced 'argparse' support to allow setting the visibility type when populating the database.
- The visibility argument defaults to "collaboration" if not specified.
- This visibility is applied directly during the 'create_product' call.
- Implemented set-visibility commands in cli.py to manage visibility for products and collections.
- These commands interact with the respective visibility endpoints, allowing users to modify visibility settings directly from the CLI.

Usage:
- henry product set-visibility <product-id> <visibility>
- henry collection set-visibility <collection-id> <visibility>
…ollections

Provides an interface to modify the visibility of collections (public, collaboration, private) via calls to set_visibility in hippoclient/product.py.
…kick in version changes when product/collection visibility has changed
Copy link
Member

@JBorrow JBorrow left a comment

Choose a reason for hiding this comment

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

An initial set of comments. We'll discuss this in our meeting.

hippoclient/cli.py Outdated Show resolved Hide resolved
hippoclient/collections.py Outdated Show resolved Hide resolved
hippoclient/collections.py Outdated Show resolved Hide resolved
hippoclient/collections.py Outdated Show resolved Hide resolved
hippoclient/product.py Outdated Show resolved Hide resolved
hippoclient/product.py Outdated Show resolved Hide resolved
hipposerve/api/models/product.py Outdated Show resolved Hide resolved
hipposerve/api/product.py Outdated Show resolved Hide resolved
hipposerve/api/product.py Outdated Show resolved Hide resolved
hipposerve/api/product.py Outdated Show resolved Hide resolved
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