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

feat: add a project_id to gateway #1091

Merged

Conversation

chesedo
Copy link
Member

@chesedo chesedo commented Jul 17, 2023

Description of change

This adds a ULID for project IDs to gateway. This will be needed for the new resource recorder.

It also replaces the need for a created_at field since the ULID has a timestamp in it.

Most of gateway still uses the project name (and not this new id) everywhere. I think this is fine for now as the deployer update will take care to switch over to the IDs.

How has this been tested? (if applicable)

By running all the tests locally

oddgrd and others added 2 commits July 17, 2023 10:40
* feat: refactor projects primary key to project_id

* refactor: better comments

* feat: remaining project state changes
@chesedo chesedo force-pushed the feature/eng-706-add-a-project_id-to-gateway branch from 051b5ec to ecfdf2f Compare July 17, 2023 08:49
Copy link
Contributor

@iulianbarbu iulianbarbu left a comment

Choose a reason for hiding this comment

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

LGTM!

@chesedo chesedo merged commit c59483a into shuttle-hq:main Jul 17, 2023
30 checks passed
@chesedo chesedo deleted the feature/eng-706-add-a-project_id-to-gateway branch July 17, 2023 10:42
AlphaKeks pushed a commit to AlphaKeks/shuttle that referenced this pull request Jul 21, 2023
* Feat/refactor gateway state (shuttle-hq#1042) - ULID only

* feat: refactor projects primary key to project_id

* refactor: better comments

* feat: remaining project state changes

* refactor: update queries

---------

Co-authored-by: Oddbjørn Grødem <29732646+oddgrd@users.noreply.github.com>
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.

None yet

3 participants