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

ManagePackageViewModel should not be dependent on DisplayPackageViewModel #6900

Merged
merged 2 commits into from Feb 20, 2019

Conversation

scottbommarito
Copy link
Contributor

@scottbommarito scottbommarito commented Feb 19, 2019

precursor to #6773

We decided that it was a bad idea to make the ManagePackageViewModel dependent on DisplayPackageViewModel as it forces DisplayPackageViewModel to store all information necessary to build the ManagePackageViewModel, which complicates the performance of the page.

ManagePackageViewModel will need deprecation information for all versions, but DisplayPackageViewModel only needs the selected package's deprecation information.

I have kept the dependency on ListItemPackageViewModel because it needs some of the fields on it, and I felt the model was lightweight enough for it not to be a big deal to reuse it.

@scottbommarito scottbommarito merged commit fa6ae9c into dev Feb 20, 2019
@scottbommarito scottbommarito deleted the sb-managepackageviewmodelseparate branch February 20, 2019 17:43
@scottbommarito scottbommarito restored the sb-managepackageviewmodelseparate branch July 22, 2019 23:18
@scottbommarito scottbommarito deleted the sb-managepackageviewmodelseparate branch July 22, 2019 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants