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

variables refactor #52

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

adityachoudhari26
Copy link
Contributor

No description provided.

.input(z.string().uuid())
.query(async ({ ctx, input }) => {
const variableValuesQuery = ctx.db
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we had this variable.values.byTargetId that I removed
basically seems like we wanted to get the variables within a deployment that a target had values for + any possible value that the target could be assigned to for that variable, which I ended up juist doing in the variable.byTargetId endpoint

>`COALESCE(variable_value_target.variable_value_id, variable_value_target_filter.variable_value_id)`.as(
`variable_value_id`,
),
const possibleValuesSubquery = ctx.db
Copy link
Contributor Author

Choose a reason for hiding this comment

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

grab all the values that this target could have

@adityachoudhari26 adityachoudhari26 merged commit 934599f into target-labels-table Sep 19, 2024
6 of 8 checks passed
@adityachoudhari26 adityachoudhari26 deleted the target-labels-table-fork-4 branch September 19, 2024 21:36
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.

1 participant