Skip to content

Deprecate implicit record loading in Ember Route - #774

Merged
ef4 merged 13 commits into
emberjs:masterfrom
snewcomer:implicit-record-route
Feb 3, 2023
Merged

Deprecate implicit record loading in Ember Route#774
ef4 merged 13 commits into
emberjs:masterfrom
snewcomer:implicit-record-route

Conversation

@snewcomer

@snewcomer snewcomer commented Nov 14, 2021

Copy link
Copy Markdown
Contributor

Rendered

close #773
close #557

@snewcomer snewcomer self-assigned this Nov 14, 2021
@snewcomer
snewcomer force-pushed the implicit-record-route branch 2 times, most recently from d1c1eee to fc0f0f1 Compare November 14, 2021 13:32
Comment thread text/0774-implicit-record-route-loading.md Outdated
Comment thread text/0774-implicit-record-route-loading.md Outdated
Comment thread text/0774-implicit-record-route-loading.md Outdated
Comment thread text/0774-implicit-record-route-loading.md Outdated
Comment thread text/0774-implicit-record-route-loading.md Outdated
@wagenet

wagenet commented Jul 23, 2022

Copy link
Copy Markdown
Member

@scottmessinger @runspired is there anything more that we need here other than an "official" review?

@runspired

Copy link
Copy Markdown
Contributor

@wagenet this is a framework team item not a data team item though Scott did pick it up from @NullVoxPopuli it seems to try to get it over the line. I think this became of increased importance because the troll behavior lead to increased bug reports and confusion once injections were eliminated for 4.x

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

ah right! this supersedes #557 <-- I'll close this

@snewcomer

Copy link
Copy Markdown
Contributor Author

100%. I’d be eager to do the legwork once merged if someone else didn’t pick it up. Unsure if it needs a “sponsor”. Let me know if someone can bring it up in the core team meeting!

@ef4

ef4 commented Aug 5, 2022

Copy link
Copy Markdown
Contributor

Framework core discussed this and everyone is in favor of the deprecation.

A suggestion is that the design could use an optional feature that disables the old bad behavior. This would let people clear the deprecation by enabling the feature, rather than requiring them to create new empty model hooks and potentially new route files.

snewcomer and others added 7 commits October 1, 2022 22:57
Co-authored-by: Bert De Block <bert.deblock@bagaar.be>
Co-authored-by: Bert De Block <bert.deblock@bagaar.be>
Co-authored-by: Bert De Block <bert.deblock@bagaar.be>
Co-authored-by: Bert De Block <bert.deblock@bagaar.be>
@snewcomer
snewcomer force-pushed the implicit-record-route branch from d9547c5 to 4419a8f Compare October 2, 2022 03:57
@snewcomer

Copy link
Copy Markdown
Contributor Author

@ef4 hi! Any updates on this RFC?

@wagenet

wagenet commented Nov 8, 2022

Copy link
Copy Markdown
Member

@snewcomer looks like it may have gotten dropped on accident, sorry! I've officially added it to the agenda for our next meeting.

@wagenet wagenet added the S-Proposed In the Proposed Stage label Dec 2, 2022
@wagenet wagenet added S-Exploring In the Exploring RFC Stage and removed S-Proposed In the Proposed Stage labels Jan 13, 2023
@wagenet

wagenet commented Jan 13, 2023

Copy link
Copy Markdown
Member

@snewcomer Sorry for the delay. Everything got thrown off with the holidays. I'll try to get this back on track.

@wagenet

wagenet commented Jan 27, 2023

Copy link
Copy Markdown
Member

We agreed to move this to FCP. It needs a few tweaks for our new stages setup and will need to be retargeted at v6. I can help with this.

@wagenet wagenet assigned wagenet and unassigned locks and snewcomer Jan 27, 2023
@wagenet

wagenet commented Jan 27, 2023

Copy link
Copy Markdown
Member

Relatedly, we should also deprecate the default store property in routes.

@wagenet wagenet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! In addition to the inline comments, can you add a "Drawbacks" section? I think it's sufficient to just note that when the implicit behavior is nice it saves typing and now you have to type more.

Comment thread text/0774-implicit-record-route-loading.md Outdated
Comment thread text/0774-implicit-record-route-loading.md
Comment thread text/0774-implicit-record-route-loading.md Outdated
@Windvis

Windvis commented Jan 28, 2023

Copy link
Copy Markdown

I think this also means that the routes-segments-snake-case rule can be removed from the recommended ruleset?

I've been disabling that rule on every project I work on since we don't depend on the implicit record loading and it would be nice if we could remove it from our eslint config file 😄.

ef4 and others added 3 commits February 3, 2023 14:19
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
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.

Deprecate default store and record loading in Ember route

9 participants