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

Change service id from UUIDv4 to ULID #1095

Conversation

iulianbarbu
Copy link
Contributor

@iulianbarbu iulianbarbu commented Jul 18, 2023

Description of change

Changed service_id from UUID to ULID.
Added deployer db migration as well, based on shuttle-hq/sqlite-ulid#1.
This is based on: #1092.

How has this been tested? (if applicable)

Deployed it on unstable and tested it.

@iulianbarbu iulianbarbu force-pushed the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch from befac32 to 7e82443 Compare July 18, 2023 18:31
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

Just left a few comments

common/src/models/deployment.rs Outdated Show resolved Hide resolved
deployer/migrations/0004_change_service_id_to_ulid.sql Outdated Show resolved Hide resolved
@iulianbarbu iulianbarbu force-pushed the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch 2 times, most recently from 96faad6 to c00896e Compare July 20, 2023 08:55
@iulianbarbu iulianbarbu added the B-M A medium task that requires experience with the codebase label Jul 20, 2023
@iulianbarbu iulianbarbu self-assigned this Jul 20, 2023
@iulianbarbu iulianbarbu force-pushed the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch from 752a6fd to 7b5dc05 Compare July 21, 2023 07:12
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

LGTM 🥳

@iulianbarbu iulianbarbu force-pushed the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch from 441fd00 to 2f56ec3 Compare July 31, 2023 13:30
We use uuid v4 which doesn't contain timestamp information. This means
converting them to ulid will make for irelevant time information within
the ulids. To have though some useful time info (that can be accounted
for created_at time information) inside the service_ids, we create
ulids based on 2023-06-01 datetime (referring to before beta release)
that will help us identify these services, while the new services will
use ulid to convey information about creation timestamp.

   (use "git push" to publish your local commits)
@iulianbarbu iulianbarbu force-pushed the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch from 2f56ec3 to 830aaf3 Compare July 31, 2023 13:34
@iulianbarbu
Copy link
Contributor Author

Closing this in favour of #1101.

@iulianbarbu iulianbarbu closed this Aug 4, 2023
@jonaro00 jonaro00 deleted the feature/eng-707-update-the-service_id-in-deployer-to-a-ulid branch March 16, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-M A medium task that requires experience with the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants