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

[CPDNPQ-2346] Cohort + schedule management #2068

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

Conversation

rwrrll
Copy link
Contributor

@rwrrll rwrrll commented Dec 11, 2024

@rwrrll rwrrll marked this pull request as ready for review December 11, 2024 09:58
@rwrrll rwrrll requested a review from a team as a code owner December 11, 2024 09:58
Copy link

@rwrrll
Copy link
Contributor Author

rwrrll commented Dec 19, 2024

Thanks @alkesh – I was trying to make it obvious how the instance variables were set, but evidently just made it more confusing 😉 moved into a before_action now, if you fancy a second look!

@rwrrll rwrrll added this pull request to the merge queue Dec 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 20, 2024
Comment on lines +30 to +32
def self.allowed_declaration_types
connection.execute("SELECT unnest(enum_range(NULL::declaration_types))").values.flatten
end
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems a bit unusual or I'm not following? Whats the advantage of normalizing the list in a separate method, why not normalize it here? Though I'm also not understanding why postgres would return a blank enum type?

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.

3 participants