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 an environment flag for LILAC_AUTH_ENABLED and turn off features. #452

Merged
merged 4 commits into from
Jul 19, 2023

Conversation

nsthorat
Copy link
Contributor

@nsthorat nsthorat commented Jul 18, 2023

Features turned off with readonly:

  • Create a dataset
  • Delete a dataset or concept
  • Computing a signal
  • Computing an embedding
  • Changing dataset settings
  • Monitoring tasks (there are no tasks in readonly)

Features not yet turned off (will do this once I figure out auth in HF):

  • Concept editing (thumbs up / down)
  • Creating a concept

Readonly demo: https://huggingface.co/spaces/lilacai/nikhil_staging

@nsthorat nsthorat changed the title [not read] Add an environment flag for LILAC_READONLY and turn off features. [not read] Add an environment flag for LILAC_AUTH_ENABLED and turn off features. Jul 18, 2023
@nsthorat nsthorat changed the title [not read] Add an environment flag for LILAC_AUTH_ENABLED and turn off features. Add an environment flag for LILAC_AUTH_ENABLED and turn off features. Jul 18, 2023
@nsthorat nsthorat requested a review from dsmilkov July 18, 2023 21:02
Copy link
Collaborator

@dsmilkov dsmilkov left a comment

Choose a reason for hiding this comment

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

awesome

@@ -6,6 +6,10 @@ LILAC_DATA_PATH=./data
# Set to 1 for duckdb to use views instead of materialized tables (lower memory usage, but slower).
DUCKDB_USE_VIEWS=0

# Set to true to enable read-only mode, disabling the ability to add datasets & compute dataset
# signals.
# LILAC_AUTH_ENABLED=true
Copy link
Collaborator

Choose a reason for hiding this comment

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

add this variable in .env.demo in deploy_hf.py ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't do this yet on purpose -- for our staging demos I don't want this bit on, and I'm not sure yet if this should be controlled only through the UI (since it's nice for discoverability when forking)

@nsthorat nsthorat merged commit 0dcd375 into main Jul 19, 2023
3 checks passed
@nsthorat nsthorat deleted the nik-read-only branch July 19, 2023 12:50
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.

2 participants