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

Broken builds and merge-ups #290

Closed
github-actions bot opened this issue Aug 6, 2024 · 5 comments
Closed

Broken builds and merge-ups #290

github-actions bot opened this issue Aug 6, 2024 · 5 comments
Assignees

Comments

@github-actions
Copy link

github-actions bot commented Aug 6, 2024

This is an automatically created issue used to remind the Silverstripe CMS Squad to look at broken builds and merge-ups every Tuesday.

It was created by the .github/workflows/rhino-issue.yml workflow in the silverstripe/.github repository.

Triage instructions

  1. Put on the following label:
  • type/other
  1. Move this issue to the "Ready" column on our internal zenhub board

Broken builds:

Merge-ups:

Steve PRs

PRs

Important

After merging the PRs, assign to Guy to do the following:

@GuySartorelli
Copy link
Member

Not done yet, reopening

@GuySartorelli
Copy link
Member

@emteknetnz Since you merged tractorcow-farm/silverstripe-fluent#872 and silverstripe/silverstripe-subsites#590 without responding to the content in the PR descriptions I'll bring it up here:

The fix in those PRs was very narrow in scope, and likely doesn't cover a bunch of scenarios - especially for fluent where the tests only covered SiteTree and not other data objects.

A more robust solution would be to implement the updateIsSiteUrl() extension hook for Director for both modules in a minor release. This would allow us to say "yes, any domain we know about for any locale or subsite in this project is a 'site URL'".
There may be flow-on effects for that though - it really depends if by "site URL" it means "this project" or if it means "this locale/this subsite".

Right now if it's the latter, it'll be wrong whenever domains aren't used to separate locales and subsites, so the result would be inconsistent. However, if we change it to always return true if the URL is for any subsite or locale, this has potential to cause problems if someone is using that method to distinguish between them in a project which does use domains.

Personally I'm in favour of making the change (in a minor release), but I want at least one other opinion before I do that.

FYI @tractorcow @silverstripe/core-team

@kinglozzer
Copy link
Member

I rarely use fluent, and I think I’ve only used subsites once or twice ever, so I don’t have much insight to offer here. I think the question I’d ask is whether the issue(s) that highlighted this have been fixed/worked around? If yes, and there’s a non-zero risk that we could break things for people, I’d be inclined to delay the change until a major release

@GuySartorelli
Copy link
Member

I think the question I’d ask is whether the issue(s) that highlighted this have been fixed/worked around?

Yes, the very specific CI failures have been resolved. But as I mentioned above those CI failures and the corresponding fixes were very narrow in scope.

If for example you have a fluent locale with domain www.example.com and your main site is www.example.co.nz, any case where you put the fluent locale through Controller::normaliseTrailingSlash() which doesn't come from one of the two code paths that got patched will still have the incorrect trailing slash, if the domain for that locale doesn't match whatever director things is the current correct domain for the site.
This means and non-SiteTree data object links, controller actions, hardcoded URIs, you name it.

@emteknetnz
Copy link
Member

A more robust solution would be to implement the updateIsSiteUrl() extension hook for Director for both modules in a minor release. This would allow us to say "yes, any domain we know about for any locale or subsite in this project is a 'site URL'".

Seems reasonable, though should be done in a separate card from broken builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants