-
Notifications
You must be signed in to change notification settings - Fork 203
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
Dev to main sync #1841
Dev to main sync #1841
Conversation
* doc: added doc for user status flow diagram * flow diagram updated
* fix: add condition to skip discordId check * fix: add superuser check * test: add test for super user check * fix: remove unused code
return res.json({ message: "pong" }); | ||
}; | ||
|
||
router.get("/for-super-user", authorization([ROLES.SUPERUSER], [Services.CRON_JOB_HANDLER]), pongHandler); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
This route handler performs
authorization
This route handler performs
authorization
This route handler performs
authorization
This route handler performs
authorization
This route handler performs
authorization
This route handler performs
authorization
|
||
describe("Service Authorization", function () { | ||
it("should return unauthorized for invalid authorization header format", async function () { | ||
req.headers.authorization = "InvalidHeader"; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
authorization header
}); | ||
|
||
it("should return unauthorized for invalid JWT token", async function () { | ||
req.headers.authorization = "Bearer invalid_token"; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
authorization header
Staging proof of #1839
|
Main to dev sync
router.post("/", answerValidators.createAnswer, answers.createAnswer); | ||
router.patch( | ||
"/:answerId", | ||
authenticate, |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
This route handler performs
authorization
This route handler performs
authorization
* API for applications * authorizeown or super user middleware in get request * validator changes * config changes * log for update application * test for get application API * completed get application tests * application API test completed * changed according to the discord link generate api changes * few changes based on new requirement and few changes after self review * controller message changed * removed unwanted code and updated types for controller methods * fix for failing tests * removed console log * made changes suggested * logger string change * fix issues in comments, logger error, and types * fix for logtype import issue * application import fix * updated validator according to model change and removed unwanted imports * fix for faling build * filtering based on status * updated getAllApplication tests * removed only from tests * added new route to get application by id * validation for status sent in payload * logic change for sending all user applications * made userId optional * completed suggested changes on PR * created at field in applications * tests for application details API * updated test for updating applications * pagination for applications API * logic change for pending application for user * completed model tests for application * removed .only from applications model tests * updated integration test * change in application get API test with status * removed only from tests * added try catch * script for updating applications * application model test for batch update * integration test for batch update API * unit test for model for batch updating applications * fix failing unit test * removed console logs --------- Co-authored-by: Prakash Choudhary <[email protected]> Co-authored-by: Sunny Sahsi <[email protected]> Co-authored-by: Vikhyat Bhatnagar <[email protected]>
@@ -24,5 +24,6 @@ | |||
applicationValidator.validateApplicationUpdateData, | |||
applications.updateApplication | |||
); | |||
router.patch("/batch/update", authenticate, authorizeRoles([SUPERUSER]), applications.batchUpdateApplications); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
This route handler performs
authorization
This route handler performs
authorization
Staging working proof of #1742
|
) * added types and middleware for ooo status request * added test and fixtures data ooo request * added more test and fix middleware ooo get request * refactor test and data * Update test/unit/middlewares/request.test.ts * remove unused import * added more validation to validate create ooo request * refactor middleware and fix test * fix error and improve test coverage * change processedBy to lastUpdatedBy
My changes Look good 👍. Can't verify as its only a middleware |
Co-authored-by: Satyam Bajpai <[email protected]>
// WARNING!! - One time Script/Route to do migration | ||
router.post( | ||
"/migrations", | ||
authenticate, |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
This route handler performs
authorization
This route handler performs
authorization
Date: 22-Jan-2023 Developer Name: @ardourApeX PR's going in (Developer)s Name
Is Under the Feature Flag
Database changes
Breaking changes (If your feature is breaking/missing something please mention pending tickets)
Is Development Tested?
Is it tested in staging?
Add relevant Screenshot below ( e.g test coverage etc. )
|
* chore : added middleware for invite API and type package for sinon * test: added test for middaleware with data * refactor: change field reason to purpose * feat: added new api for discord invites * refactor: change file and added inviteLink to type * fix import * added config for external service authintication * test: fix failing test * change field name uniqueUserId to userId * refactor: fix error message * refactor: using existing model or collection for storing invite data in db * fix test and used global custom respone type * refactor: create seprate middleware for authinticate external service
import { createInviteLink,getInviteLink } from "../controllers/invites"; | ||
import authinticateServiceRequest from "../middlewares/authinticateServiceRequest"; | ||
|
||
router.post("/",authinticateServiceRequest, createInviteValidator, createInviteLink); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
import authinticateServiceRequest from "../middlewares/authinticateServiceRequest"; | ||
|
||
router.post("/",authinticateServiceRequest, createInviteValidator, createInviteLink); | ||
router.get("/:userId" ,authinticateServiceRequest, getInviteLink); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
Date: 09-1-24
Developer Name: @prakashchoudhary07
PR's going in
(Developer)s Name
Is Under Feature Flag
Database changes
Breaking changes (If your feature is breaking/missing something please mention pending tickets)
Is Development Tested?
Is it tested in staging?
Add relevant Screenshot below ( e.g test coverage etc. )
#1841 (comment)