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

Remove manual ref-assembly generation for Router #12474

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Jul 23, 2019

No description provided.

@rynowak rynowak requested a review from javiercn July 23, 2019 15:19
@rynowak rynowak requested review from SteveSandersonMS and a team as code owners July 23, 2019 15:19
@rynowak
Copy link
Member Author

rynowak commented Jul 23, 2019

We need to review this really carefully to make sure something else doesn't regress.

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

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

I'm gonna say 👍 but I'm not really sure what's going on here. I imagine its likely the ref assembly for components have the wrong stuff and hence the issue?

Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

As long as removing the private setters from the ref properties is fine (and I seem to remember comments to that effect in other PRs), this looks solid. (Side-by-side comparison turns up only the removal of the private setters and one property placement correction.)

@rynowak
Copy link
Member Author

rynowak commented Jul 23, 2019

As long as removing the private setters from the ref properties is fine (and I seem to remember comments to that effect in other PRs), this looks solid. (Side-by-side comparison turns up only the removal of the private setters and one property placement correction.)

Nope. Super not-fine - I'm glad you noticed.

@rynowak
Copy link
Member Author

rynowak commented Jul 23, 2019

I'm gonna say 👍 but I'm not really sure what's going on here. I imagine its likely the ref assembly for components have the wrong stuff and hence the issu

Our choices pre-mondo-ization led us to need these manually maintained ref assemblies and it's been a nightmare to manage. When they get out of sync with the product we only know because of failing template tests.

We're at a point now where we can remove all of this garbage.

@SteveSandersonMS
Copy link
Member

As long as removing the private setters from the ref properties is fine (and I seem to remember comments to that effect in other PRs), this looks solid. (Side-by-side comparison turns up only the removal of the private setters and one property placement correction.)

Nope. Super not-fine - I'm glad you noticed.

Let's figure out a strategy for this first then. I see this is where we decided to require public setters. If it's at all possible not to require public setters that would be a huge benefit.

If we did require public setters, we'd have to put them on all the built-in components, which:

  • Forces us to design a lot more behavior and more tests to deal with people using the setters manually. The built-in components aren't designed for that currently.
  • Locks us into having these public setters forever.

@SteveSandersonMS
Copy link
Member

If we did require public setters, we'd have to put them on all the built-in components, which:

OK, forget that comment. This is something we've thought through already and decided is the right choice. We're using an analyzer to warn people not to call those setters, so we don't regard it as supported to do so.

@rynowak
Copy link
Member Author

rynowak commented Jul 23, 2019

Updated to use public get/public set

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jul 23, 2019
@rynowak rynowak merged commit 3e2f884 into master Jul 23, 2019
@ghost ghost deleted the rynowak/fix-therouter branch July 23, 2019 21:39
@mkArtakMSFT mkArtakMSFT added the tell-mode Indicates a PR which is being merged during tell-mode label Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants