-
Notifications
You must be signed in to change notification settings - Fork 126
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
Introduce backend flag to indicate that a deployed project is in an a… #3758
Introduce backend flag to indicate that a deployed project is in an a… #3758
Conversation
…ctual production state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change of plan – @nishantmonu51 requested to turn this into a generic tagging feature. High level suggested changes:
- Instead of
ProdSLA bool
, we would haveProdTags []string
- Instead of
rill sudo project search --sla
, we would haverill sudo project search --tag tag1 --tag tag2 ...
(usecmd.Flags().StringSliceVar
to read multiple values into a[]string
).
Nit: Instead of |
admin/database/database.go
Outdated
ProdSlots int `db:"prod_slots"` | ||
ProdTTLSeconds *int64 `db:"prod_ttl_seconds"` | ||
ProdDeploymentID *string `db:"prod_deployment_id"` | ||
Tags pq.StringArray `db:"tags"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use lib/pq
, we use jackc/pgx
for Postgres. Does this work? If yes, you can just put []string
here. If not, should use pgtype.Array[string]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried both ways you suggested, only works if we use pq.StringArray
or custom impl of Tags
…d-flag-to-indicate-that-a-deployed-project-is-in-an-actual-production-state
No description provided.