Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

The one true data model #52

Merged
merged 14 commits into from
Jun 7, 2021
Merged

The one true data model #52

merged 14 commits into from
Jun 7, 2021

Conversation

itowlson
Copy link
Contributor

@itowlson itowlson commented Jun 4, 2021

We wrote a design doc to clarify the data model as we understood it. However the existing object model didn't quite line up with this design. This PR reworks the model to be (closer to) what we intended.

This PR includes no new UI (except changing some text fields to drop-downs) or functionality. Therefore, it treats all channels as locked to a specific revision (although it defines placeholder fields to define the channel mode and to hold auto deploy rules). Once we have the data model in place, the next step will be to tackle UI and logic for rules-based channels. This PR limits itself to the data model.

The PR also seeds multiple revisions of the Hello World app that all exist in the Deis Labs Bindle server, and two channels instead of one. This facilitates testing the channel revision update behaviour.

NOTE: This PR doesn't touch the migrations. Those will need to be revisited once the schema is firmly nailed down.

@itowlson itowlson requested a review from bacongobbler June 4, 2021 04:04
Copy link
Contributor

@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for remodeling all this.

@bacongobbler
Copy link
Contributor

NOTE: This PR doesn't touch the migrations.

That's fine. We need to regenerate the migrations once we add back postgresql support. The in-memory database doesn't care about database migrations so it's fine to leave that for now :)

@itowlson itowlson merged commit d8e7e87 into deislabs:main Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants