-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Update references to Umbraco User model (Extension Template) #19349
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
In the template dashboard, update the type reference for the umbraco user
Hi there @Rockerby, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hi @Rockerby! Thanks for your PR to correct the type definition for the user in the extension template dashboard in v16. One of the Core Collaborators team will review this as soon as possible. In the meantime if you have a logged issue that we could reference please let me know. Thanks again, and for the useful replication steps. Best wishes |
Cheers @emmagarland - I hadn't created an issue, but that makes it sound like you want one 😄 Ive created it here - #19351 |
Fantastic, thanks @Rockerby ! Emma |
Just noting here the package team have just tested this fix on RC4 and all still works. @AndyButland who needs to review this so it can merged in time for final release? I don't think the Core Collabs usually deal with template changes 🤷♀️ 🙏 |
Thanks for the nudge @LottePitcher - I'll get a FE-er to review it but agree as it's a regression it's one to get in before the final release. |
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.
Looks good to me. Thanks for looking into it!
Update references to Umbraco User model In the template dashboard, update the type reference for the umbraco user
Picked for 16.0 with d86064e |
Correct the type definition for the user in the extension template dashboard.
Prerequisites
Linked issue - #19351
Description
Testing the extensions template with the v16 RC2 lead to issues in the dashboard. This PR corrects the types and a "possibly null" issue on the
_contextCurrentUser
object.To see the original error you can run the below:
I needed to manually update the Umbraco version references in both the
package.json
(in theMySite.Extensions\Client
folder) and the Umbraco version in theMySite.Extensions.csproj
to point to v16 RC.After building I then got the following errors:
@warrenbuckley - thanks for the help with testing :)