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 scope to redirects #315

Merged
merged 13 commits into from
Sep 26, 2024
Merged

Add scope to redirects #315

merged 13 commits into from
Sep 26, 2024

Conversation

jomunker
Copy link
Contributor

@jomunker jomunker commented Jul 29, 2024


PR Checklist

  • Link to the respective task if one exists: COM-878

@jomunker jomunker requested a review from johnnyomair July 29, 2024 17:34
@jomunker jomunker self-assigned this Jul 29, 2024
@jomunker jomunker marked this pull request as ready for review July 31, 2024 11:42
nsams
nsams previously approved these changes Aug 2, 2024
@jomunker jomunker requested review from johnnyomair and nsams August 8, 2024 06:58
@nsams nsams removed their request for review August 8, 2024 09:02
@@ -19,5 +19,7 @@ export class Migration20220721122758 extends Migration {
'alter table "PageTreeNode" add constraint "PageTreeNode_parentId_foreign" foreign key ("parentId") references "PageTreeNode" ("id") on update cascade on delete set null;',
);
this.addSql('create index "PageTreeNode_parentId_index" on "PageTreeNode" ("parentId");');

this.addSql('alter table "Redirect" add column "scope_domain" text not null;');
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it is good practice to alter existing migrations. If the starter would be deployed, this change would not be made.

Create a new migration and also make it fail-safe by truncating the table before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#315 (comment)
Please discuss this with @johnnyomair and let me know what I should do ^^

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 sorry, this was my suggestion 😅 We did this multiple times in the past to avoid having a bunch of migrations when starting a new project. We could change our approach though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dkarnutsch what do you prefer?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@nsams what do you think? Maybe we should start adding actually working migrations once the Starter has been deployed

Copy link
Member

Choose a reason for hiding this comment

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

A growing Number of Migrations in New Projects Is Not desirable, that is unnecessarily confusing.

Maybe we can drop database and run fixtures on every starter deploy?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@dkarnutsch what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

@johnnyomair

Maybe we can drop database and run fixtures on every starter deploy?

I'm okay with that (out of scope for this PR)

Copy link
Contributor

@fraxachun fraxachun Sep 26, 2024

Choose a reason for hiding this comment

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

I'll take care of this (COM-1106)

@jomunker jomunker requested a review from nsams September 19, 2024 14:12
dkarnutsch
dkarnutsch previously approved these changes Sep 24, 2024
johnnyomair
johnnyomair previously approved these changes Sep 25, 2024
nsams
nsams previously approved these changes Sep 25, 2024
dkarnutsch
dkarnutsch previously approved these changes Sep 26, 2024
fraxachun
fraxachun previously approved these changes Sep 26, 2024
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
thomasdax98
thomasdax98 previously approved these changes Sep 26, 2024
@johnnyomair johnnyomair merged commit 096f39b into main Sep 26, 2024
3 checks passed
@johnnyomair johnnyomair deleted the COM-878-scope-redirects branch September 26, 2024 08:46
johnnyomair added a commit that referenced this pull request Sep 26, 2024
Leftover from #315.
@johnnyomair johnnyomair mentioned this pull request Sep 26, 2024
johnnyomair added a commit that referenced this pull request Sep 30, 2024
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.

6 participants