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

Unsuccessful in editing/deleting API backend #1331

Merged
merged 8 commits into from
Jul 20, 2016

Conversation

55
Copy link
Contributor

@55 55 commented Jul 18, 2016

Closes #1248

The problem comes when you delete API(s) on one instance, it still exists on other instances.
This fix will check if API(s) exists on APIUmbrella and if not it will remove API(s) on every instance with next sync.

thanks @frenchbread for pair-programming.

@55 55 added this to the Sprint 27 milestone Jul 18, 2016
@55 55 added WIP and removed WIP labels Jul 19, 2016
@55 55 removed the WIP label Jul 20, 2016
@55
Copy link
Contributor Author

55 commented Jul 20, 2016

@apinf/developers, please review.

@frenchbread frenchbread self-assigned this Jul 20, 2016
// Get existing API Backend
var existingApiBackend = ApiBackends.findOne({'id': apiBackend.id});
var existingApiBackend = ApiBackends.findOne({'id': remoteApi.id});
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Change var to const
  • Rename existingApiBackend to existingRemotelyApiBackend or smth like that

@frenchbread frenchbread merged commit 6594d0b into develop Jul 20, 2016
@frenchbread frenchbread deleted the hotfix/unable-to-update-apibackend branch July 20, 2016 13:37
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.

Unsuccessful in editing API backend - shows "Cannot read property 'length' of null"
2 participants