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

Changing database schema #48

Closed
AlexanderGeiger opened this issue May 31, 2019 · 2 comments
Closed

Changing database schema #48

AlexanderGeiger opened this issue May 31, 2019 · 2 comments

Comments

@AlexanderGeiger
Copy link
Contributor

@kveerama and I discussed some changes of the DB schema:

  • add name and description fields to Datarun collection
  • add Experiment collection, which consists of multiple Dataruns. (We might want to restrict it such that one Experiment can only consist of multiple Dataruns with same Dataset)

The idea is that the first screen a user would see is the Experiments overview. If an Experiment is clicked, the different Dataruns belonging to the Experiment are shown. Thus, Experiments are a way of structuring multiple Dataruns. A Datarun consists of a Dataset and a Pipeline. When a Datarun is clicked, the Dataset itself and all Events and Comments belonging to the Datarun are displayed.

If anyone has additional thoughts on that, please feel free to comment.

@kveerama kveerama changed the title Database schema Changing database schema Jul 25, 2019
@kveerama
Copy link
Contributor

kveerama commented Jul 25, 2019

@csala's comment:
About the Experiments: at some point we discussed a slightly different schema, that would be as follows:

  • A Dataset is associated with a Satellite and has a collection of Signals
  • A Signal is associated with a single CSV file and has a start and a stop.
  • An Experiment is related to a Pipeline and a Dataset.
  • Dataruns are related to an Experiment and a Signal, which implicitly relates them to a Dataset and a Pipeline.

For this, we should:

  • Rename the current Dataset to Signal.
  • Remove the satellite_id and signal_set fields from the Signal model.
  • Add another Dataset model that is parent to Signal and has the satellite_id field.
  • Create the Experiment model and make it related to Dataset and Pipeline.
  • Make the Dataruns related to the Experiment.
  • Remove the Datarun <-> Pipeline relationship (as it comes through the Experiment).

Can we adapt the changes to this schema?

@AlexanderGeiger
Copy link
Contributor Author

Closed in #58

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

No branches or pull requests

2 participants