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

Feature/revoke api key should have confirm dialog #3339

Merged

Conversation

deligence-dharmendra
Copy link
Contributor

@deligence-dharmendra deligence-dharmendra commented Jan 19, 2018

Closes #3322

Changes

  • change in API key HTML, API key js file
  • add new getApisList method in the server method

Developer checklist

This checklist is to be completed by the PR developer:

  • Alternative solutions were compared/discussed before writing code
    • trade-offs with this solution are considered acceptable
  • Code in this PR adheres to the project styleguide
  • This pull request does not decrease project test coverage
  • If the code changes existing database collection(s), migration has been written
  • If UI texts are added or changed, all texts are internationalized

Reviewer checklist

Reviewed by: @marla-singer @matleppa

This list is to be completed by the pull request reviewer:

  • Code works as described/expected
  • Code seems to be error free
    • no browser console errors visible
    • no server console errors visible
    • passes CI build
  • Code is written in a way that promotes maintainability
    • easy to understand
    • well organized
    • follows project coding standards and conventions
    • well documented

@@ -32,4 +32,46 @@
</button>
{{/ if }}
{{/ if }}
<!-- regenerate api key confirmation modal section -->
<div class="modal fade" id="regenerate-api-key-confirmation-modal">
Copy link
Contributor

Choose a reason for hiding this comment

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

Create a new template for Modal form and place all logic/handler of this template to separate file. The value of API key you can provide to Modal. Look at another implementation of Modal form (for example, for Backlog)

"regenerateApiKeyConfirmation_confirmRegenerateMessage": "Are you sure you want to revoke API key?",
"regenerateApiKeyConfirmation_confirmRegenerateNote": "NOTE:",
"regenerateApiKeyConfirmation_confirmRegenerateInformation":
"Revoking API key will stop calls with old API key to following APIS: .",
Copy link
Contributor

@marla-singer marla-singer Jan 22, 2018

Choose a reason for hiding this comment

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

  1. Make it as one line
  2. remove the last dot in the sentence
  3. APIS -> APIs

// Get all APIs ID that are connected to specify Proxy
const apiIds = ProxyBackends.find({ proxyId }).map(backend => { return backend.apiId; });
// Find all APIs that are connected to Proxy
const apisList = Apis.find({ _id: { $in: apiIds } }).fetch();
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a filter by user. I mean that find all connected APIs that the current user manages.

Add additional rule

@marla-singer marla-singer added this to the Sprint 62 milestone Jan 22, 2018
@ghost ghost added the in progress label Jan 22, 2018
@marla-singer
Copy link
Contributor

@deligence-dharmendra The last develop contains fix for Travis-CI. Please merge develop branch to yours

fixed travis ci issue

fixed travis issue

fixed new changes

fixed travis ci issue
@marla-singer
Copy link
Contributor

Will look at it tomorrow

Copy link
Contributor

@marla-singer marla-singer left a comment

Choose a reason for hiding this comment

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

no errors, works fine

@marla-singer marla-singer merged commit 537c37e into develop Jan 25, 2018
@ghost ghost removed the Ready for review label Jan 25, 2018
@marla-singer marla-singer deleted the feature/revoke-api-key-should-have-confirm-dialog branch January 25, 2018 08:43
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.

2 participants