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

Added in environment variable for sorting/config #187

Merged
merged 7 commits into from
Aug 30, 2024

Conversation

mattdiez-at
Copy link
Contributor

@mattdiez-at mattdiez-at commented Aug 27, 2024

Rationale

Column order is important for a few of the tables I work with and switching my users from their (database-defined) order to alphabetical caused a little shellshock. Essentially, getting this functionality will be the last part of our migration from a different feature server package.

How it works

We add an environment variable TIPG_SORT_COLUMNS (which defaults to True). Set it to False to disable sorting of columns. It's essentially trivial code, plus accompanying docs and Settings model updates.

Anything else?

Let me know if I need to add anything else here.

tipg/settings.py Outdated Show resolved Hide resolved
tipg/collections.py Outdated Show resolved Hide resolved
tipg/settings.py Outdated Show resolved Hide resolved
@vincentsarago vincentsarago merged commit 4654a91 into developmentseed:main Aug 30, 2024
8 checks passed
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