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

Introduce uninstalling #67

Merged
merged 5 commits into from May 11, 2017
Merged

Introduce uninstalling #67

merged 5 commits into from May 11, 2017

Conversation

felixheidecke
Copy link
Contributor

Also includes:

  • improved error handling
  • consolidated application actions

@felixheidecke
Copy link
Contributor Author

@DeepDiver1975 This requires the API to return status codes outside the 200 range for it to work!

src/App.vue Outdated
@@ -12,6 +12,10 @@
import Navigation from './components/Navigation.vue';

export default {
mounted: function () {
this.$store.dispatch('FETCH_APPLICATIONS')
Copy link
Contributor

Choose a reason for hiding this comment

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

Uhm... No? It's not used there so it should not be fetched there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The "problem" here is, that whenever we change views, the applications will be fetched again and again and again and we don't want that.

App.vue will be mounted only once and whether we start in the list, the detail or the update view, so we can minimize API calls.

Re-fetching will occur after application processes such as installing, uninstalling and updating.

Copy link
Contributor

@tboerger tboerger May 9, 2017

Choose a reason for hiding this comment

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

Than use created, but this approach is totally wrong. Edit: And additionally to that some timestamp to refetch it if it's too old.

Copy link
Contributor

Choose a reason for hiding this comment

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

Re-fetching will occur after application processes such as installing, uninstalling and updating.

And this shows a poor API design :)

Choose a reason for hiding this comment

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

Please merge for now and change Frontend when API is existing.
No reason for a blocker.

@DeepDiver1975 DeepDiver1975 force-pushed the uninstall branch 2 times, most recently from fdea359 to 8e404da Compare May 9, 2017 10:47
@felixheidecke felixheidecke removed the request for review from DeepDiver1975 May 11, 2017 10:48
@DeepDiver1975 DeepDiver1975 merged commit c22472a into master May 11, 2017
@DeepDiver1975 DeepDiver1975 deleted the uninstall branch May 11, 2017 13:40
@PVince81 PVince81 added this to the 10.0.1 milestone May 16, 2017
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

5 participants