Unicon / cas

Apereo CAS - Enterprise Single Sign On for all
https://apereo.github.io/cas/
Apache License 2.0
1 stars 0 forks source link

Clean up ServiceViewBean to ensure field names are better chosen #44

Closed mmoayyed closed 7 years ago

mmoayyed commented 7 years ago

Related to https://github.com/Unicon/cas/issues/39

tsschmidt commented 7 years ago

I can understand why removing RegisteredServiceViewBean is desirable, but it does serve an important purpose. Without it we would need to send fully defined RegisteredService objects for the list of services displayed on the Manage Services screen. If using the DefaultServiceManager, than this could mean sending hundreds if not thousands of heavyweight objects over the wire to the client all at once.

Using a view bean means we only send the information that needs to be displayed at that time. Another possible solution would be a different load mechanism for RegisteredService that only populates the needed fields for the list of services to be displayed. It would be less info sent, but perhaps not as efficient as a specific view bean.

mmoayyed commented 7 years ago

Welcome back :)

Thanks for the notes; I see how that might be useful. Is there opportunity to perhaps refactor and clean up some of the field names? For example, we have field names that are sasCasEnabled or assignedId. Just seems less than intuitive to me.

tsschmidt commented 7 years ago

Absolutely there is clean up that can be done here to make things simplified and clearer.

tsschmidt commented 7 years ago

Proposed clean up for this has been pushed to mgmt-serviceview-refactor for review.

mmoayyed commented 7 years ago

Closing in favor of https://github.com/Unicon/cas/issues/39