You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
Looks like we need to modify it little bit, my Observations as follows:
If there is an existing endpoint configured in Mashery. And in swagger file somehow (mistakenly which is already running in production) deleted the endpoint or removed it.
And when we run swagger-import-update command, it deletes the endpoint from mashery which does not matches the names...
I think we should inform user about existing endpoint names and respective endpoint ID as a result that these are existing endpoints that are not available in swagger are present in mashery, if user want to delete them get confirmation else cancel it...
If user confirm to delete then we are good to go else we must not delete the endpoint which are not matching and get confirmation from user in such scenario.
The text was updated successfully, but these errors were encountered:
Confirmation already print that it will be deleted nicely. And when you somehow mistakenly remove it from source, then you should fix it and return it there (to keep it consistent).
Maybe I can do something like summary
for create and update it is perfectly fine to show the details that will get updated in Mashery.
but specially for delete I think it is better to ask separately for the user confirmation to proceed further.
so flow will be as follows:
for create/update once user says Yes, got ahead and create it.
Finally for deletion of endpoint from mashery take user concern to proceed for delete (provide or display endpoint id/name as reference),
if user says yes then delete them,
otherwise don't delete.
@schovi
An Updated on swagger import update command.
Looks like we need to modify it little bit, my Observations as follows:
If there is an existing endpoint configured in Mashery. And in swagger file somehow (mistakenly which is already running in production) deleted the endpoint or removed it.
And when we run swagger-import-update command, it deletes the endpoint from mashery which does not matches the names...
I think we should inform user about existing endpoint names and respective endpoint ID as a result that these are existing endpoints that are not available in swagger are present in mashery, if user want to delete them get confirmation else cancel it...
If user confirm to delete then we are good to go else we must not delete the endpoint which are not matching and get confirmation from user in such scenario.
The text was updated successfully, but these errors were encountered: