-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Refactor workspace instance attributedTeamId to an explicit, not-team-specific usageAttributionId
#10868
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
Conversation
attributedTeamId to an explicit, not-team-specific usageAttributionId
attributedTeamId to an explicit, not-team-specific usageAttributionIdattributedTeamId to an explicit, not-team-specific usageAttributionId
7587085 to
c3b9026
Compare
components/gitpod-db/src/typeorm/migration/1655988518555-WorkspaceInstanceUsageAttributionId.ts
Outdated
Show resolved
Hide resolved
c3b9026 to
d5a0667
Compare
d5a0667 to
0678bd6
Compare
/werft run 👍 started the job as gitpod-build-jx-attribution-id.5 |
0678bd6 to
303f5aa
Compare
|
started the job as gitpod-build-jx-attribution-id.7 because the annotations in the pull request description changed |
|
It's working! 🎉 |
components/gitpod-db/src/typeorm/migration/1655988518555-WorkspaceInstanceUsageAttributionId.ts
Outdated
Show resolved
Hide resolved
| public async down(queryRunner: QueryRunner): Promise<void> { | ||
| if (await columnExists(queryRunner, TABLE_NAME, COLUMN_NAME)) { | ||
| await queryRunner.query( | ||
| `ALTER TABLE ${TABLE_NAME} DROP COLUMN ${COLUMN_NAME}, ALGORITHM=INPLACE, LOCK=NONE`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works, approving to unblock.
/hold So for reducing the column size. 👍
… an explicit, not-team-specific 'usageAttributionId'
303f5aa to
b3c03b9
Compare
|
One last sanity check before merging -- running the migration again: /werft run with-clean-slate-deployment 👍 started the job as gitpod-build-jx-attribution-id.9 |
|
Still working as intended! 🎉 Many thanks for the review @geropl 🙏 /unhold |

Description
Refactor workspace instance
attributedTeamIdto an explicit, not-team-specificusageAttributionId.Related Issue(s)
Fixes #10822
How to test
usageAttributionIdteam:1234user:1234Release Notes
Documentation
Werft options: