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

ensure correct selection of interfaces #142

Open
6 tasks
RGreinacher opened this issue Jul 26, 2016 · 0 comments
Open
6 tasks

ensure correct selection of interfaces #142

RGreinacher opened this issue Jul 26, 2016 · 0 comments

Comments

@RGreinacher
Copy link
Member

RGreinacher commented Jul 26, 2016

Only necessary interface types are selectable. Check on every service change if the set of connected interface to all projects are necessary. If not, display a warning and deselect the unnecessary interfaces.

  • write test to ensure, that a project is not valid if it has an unnecessary interface relation
  • rename project model's selected_interfaces() to something like selected_and_necessary_interfaces()
  • create a second method called something like currently_selected_interfaces()
  • on service's after_commit compare the result sets of selected_and_necessary_interfaces() with currently_selected_interfaces() for all projects (related to this service). If those are not equal:
    • display a warning that Dalphi cutted the relation to unnecessary interfaces and
    • iterate those unnecessary interfaces and derelate them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant