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

fix: open validate endpoint #1162

Merged
merged 2 commits into from Dec 6, 2021
Merged

fix: open validate endpoint #1162

merged 2 commits into from Dec 6, 2021

Conversation

FredrikOseberg
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Dec 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/unleash-team/unleash-docs/BC6B9y8eXuusQzU9qXNxwaF9V6UF
✅ Preview: https://unleash-docs-git-fix-validate-perms-unleash-team.vercel.app

@@ -44,7 +44,7 @@ class FeatureController extends Controller {
this.get('/:featureName', this.getToggle);
this.put('/:featureName', this.updateToggle, UPDATE_FEATURE);
this.delete('/:featureName', this.archiveToggle, DELETE_FEATURE);
this.post('/validate', this.validate, UPDATE_FEATURE);
this.post('/validate', this.validate);
Copy link
Member

Choose a reason for hiding this comment

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

should use NONE

Copy link
Contributor

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -72,7 +72,7 @@ export default class Controller {
post(
path: string,
handler: IRequestHandler,
permission: string,
permission?: string,
Copy link
Member

@ivarconr ivarconr Dec 6, 2021

Choose a reason for hiding this comment

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

Don't do this, use NONE instead!

@github-actions
Copy link

github-actions bot commented Dec 6, 2021

Coverage report

Total coverage

Status Category Percentage Covered / Total
🟢 Statements 92.06% 4799/5213
🟢 Branches 82.07% 975/1188
🟢 Functions 87.93% 1144/1301
🟢 Lines 93.67% 5338/5699

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from a56ed03

@FredrikOseberg FredrikOseberg merged commit 98d64fc into master Dec 6, 2021
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

3 participants