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

Fix ContentType.Alias matching in PublishedContentExtensions and PublishedElementExtensions #6577

Merged
merged 6 commits into from
Oct 15, 2019

Conversation

rbottema
Copy link
Contributor

@rbottema rbottema commented Oct 4, 2019

Prerequisites

  • I have added steps to test this contribution in the description below

Fixes #6571.

Description

I went through PublishedContentExtensions and PublishedElementExtensions, fixing all occurrences of Content.Type.Alias matching to what is described in #6571.

The first commit fixes the bug (using Contains instead of Equals) for the ChildrenOfType method (this was the only method with the bug). The second commit changes all matching on ContentType.Alias to use invariant matching.

Locally, all tests (that run) pass. I looked into created a test for the bug case to prevent regression, but I could not quickly figure out how to do so properly.

To test the changes: see reproduction steps in #6571.

@nul800sebastiaan
Copy link
Member

Thanks @rbottema - we'll have a look soon!

@nul800sebastiaan nul800sebastiaan merged commit c8c5dfe into umbraco:v8/dev Oct 15, 2019
@nul800sebastiaan
Copy link
Member

Thanks @rbottema for this excellent update and figuring out the root cause of this bug, well done!

Congrats on your first PR merged for Umbraco CMS, great work! 👍
I've added a shiny new contributor badge to your Our Umbraco profile: https://our.umbraco.com/members/id:275392/ 🏅

@nul800sebastiaan
Copy link
Member

Thanks also @ronaldbarendse for the feedback, good stuff!

emmaburstow pushed a commit that referenced this pull request Oct 27, 2019
…ton (#6561)

* Improves accessability of the three dot tree options button

* Updated list view headers styling to have the link/hand cursor visible only if the header is sortable (and hence clicking has an effect)

* Allows members to be ordered by additional system fields (#6575)

* Fix ContentType.Alias matching in PublishedContentExtensions an… (#6577)

* Fixes an error in #6538 by moving the colon character to the sr-only span

* V8: Move misplaced colon in language selector (#6692)

* V8: It should be possible to disallow all types at content root (#6580)

* Pick macro parameters in an infinite editor like content type properties (#6586)

* Reload node children after publishing with descendants

* Correct URL decoding of macro partial view names (#6592)

* Fix semantics for list views (#6595)

* fixes test

* fixing tests

* Improved menu context
@rbottema rbottema deleted the temp-6571 branch November 12, 2019 21:22
@nul800sebastiaan
Copy link
Member

Hi there @rbottema,

First of all: A big #H5YR for contributing to Umbraco during Hacktoberfest! We are very thankful for the huge amount of PRs submitted, and all the amazing work you've been doing 🥇

We have had another record breaking amount of PR's in both the CMS, Documentation, and other smaller public repositories. You can read all about the numbers in the Umbraco Hacktoberfest round-up blog post.

Due to the amazing work you and others in the community have been doing, we've had a bit of a hard time keeping up. 😅 While all of the PRs for Hacktoberfest might not have been merged yet, you still qualify for receiving some Umbraco swag, congratulations! 🎉

In the spirit of Hacktoberfest we've prepared some exclusive Umbraco swag for all our contributors - including you!

Receive your swag! 👈 Please follow this link to fill out and submit the form, before December 19th 2019.

Following this date we'll be sending out all the swag, which also means that it might not reach your doorstep before February, so please bear with us and be patient 🙏

The only thing left to say is thank you so much for participating in Hacktoberfest! We really appreciate the help!

Kind regards,
The Umbraco PR Team & The Documentation Curators

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

Successfully merging this pull request may close these issues.

ChildrenOfType (and related methods) look(s) at substring of the alias
3 participants