cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Add query option for galaxy flags #101

Closed Carifio24 closed 8 months ago

Carifio24 commented 8 months ago

While we want to store some flags for galaxies in the database (have they/their spectra been marked bad or checked), we don't really need to give this to the app when fetching galaxy data. This PR hides these flags unless a flags=true query is included in the galaxy endpoint. This reduces the galaxy data sent to the app on first load from ~195kb to ~91kb.