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

Add migration to support SQS #12676

Closed
wants to merge 11 commits into from
Closed

Add migration to support SQS #12676

wants to merge 11 commits into from

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Dec 29, 2023

Description

Adding a new app migration to support the future SQS implementation. This will require a deterministic field to support joins, so we are adding a tableId field to internal links in order to achieve this

@adrinr adrinr requested a review from a team as a code owner December 29, 2023 12:48
@adrinr adrinr requested review from samwho and removed request for a team December 29, 2023 12:48
Copy link

linear bot commented Dec 29, 2023

@adrinr adrinr added do not merge PR is not ready to be merged - generally the PR description should say why firestorm Data/Infra/Revenue Team labels Dec 29, 2023
@budibase-devops-bot
Copy link

Plan Error

running git clone --depth=1 --branch BUDI-7656/add-migration --single-branch https://budibase-devops-bot:<redacted>@github.com/Budibase/budibase.git /atlantis-data/repos/Budibase/budibase/12676/default: Cloning into '/atlantis-data/repos/Budibase/budibase/12676/default'...
fatal: write error: No space left on device
fatal: fetch-pack: invalid index-pack output
: exit status 128

@adrinr
Copy link
Collaborator Author

adrinr commented Dec 29, 2023

This cannot be merged until the migration system is in place

@@ -17,6 +17,7 @@ import { LinkDocument } from "@budibase/types"
class LinkDocumentImpl implements LinkDocument {
_id: string
type: string
tableId: string
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm a little uncertain about this name, because it's not actually a table ID. Could be confusing when reading the code to later find out that it's 2 conjoined table IDs.

Perhaps lookupId?

Comment on lines +60 to +62
_rev?: string | undefined
createdAt?: string | number | undefined
updatedAt?: string | undefined
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these necessary? LinkDocument inherits from Document, which defines these already.

@github-actions github-actions bot added the stale label Feb 7, 2024
@github-actions github-actions bot removed the stale label Feb 19, 2024
@github-actions github-actions bot added the stale label Apr 18, 2024
@github-actions github-actions bot closed this May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge PR is not ready to be merged - generally the PR description should say why firestorm Data/Infra/Revenue Team stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants