-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
chore: remove restivus #34999
chore: remove restivus #34999
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34999 +/- ##
===========================================
+ Coverage 59.17% 59.27% +0.09%
===========================================
Files 2822 2824 +2
Lines 68069 68240 +171
Branches 15136 15143 +7
===========================================
+ Hits 40283 40450 +167
- Misses 24956 24958 +2
- Partials 2830 2832 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
bd105b6
to
73a9722
Compare
1dee994
to
07336e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge
a40a882
to
cd8051d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request.integration = await Integrations.findOne({ | ||
_id: request.params.integrationId, | ||
token: decodeURIComponent(request.params.token), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have this one on model? Can be done later, a TODO may be enough.
But if we can do it on here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I followed, do you mean create a 'getByIdAndToken' ? I dont think is related to the objetive of the pull request, this is 100% exactly how the previous code was doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's the idea. Agree on the oos, that's why I suggested the TODO. I'm tracking and fixing some of them.
@@ -87,6 +87,22 @@ API.v1.addRoute( | |||
}, | |||
); | |||
|
|||
API.v1.addRoute( | |||
'livechat/department/isDepartmentCreationAvailable', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we have to be more worried about path collisions now :(
This is something that would be great to be shared somewhere so no one gets bitten by it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we should be more worried? to you have any extra explanation in mind? now at least we follow the same rules as express, it should be easy to find how it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, because we apparently used to support things like
path/:_id
path/something
Which express doesn't iirc.
Co-authored-by: Kevin Aleman <[email protected]>
Co-authored-by: Kevin Aleman <[email protected]>
This PR will definitely help with Iron Bank and with our vulnerability management as a whole. We have some issues related to Restivus since it's an old package that uses old dependencies. |
fd8fb31
to
78b097a
Compare
78b097a
to
bc242f5
Compare
ARCH-1450
As part of the initiative to move rest to an external package, we must to remove dependencies related to meteor.
Restivus was a old library created to have access to webrouter, this is no longer the default, we have express exposed and its how we should create new endpoints.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments