-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Scoop] Added scoop-license badge. #10627
Conversation
|
There is a lot of code here which is straight copy/pasted from the scoop version service. I think if we're going to merge this I would like to see some of the common code extracted into a shared helper with a Specifically, several of the schemas and bucket file cache can be shared and nearly all of the logic in |
Totally agree with you Chris. I had this thought in mind, but I'm afraid it will break the existing ones let me give it a try though 🙂👍. |
Running the existing service tests for scoop version should help you ensure we're not breaking the existing code as you refactor. You should also be able to look at some other services where we have a base class and multiple services extending it to see some examples. If you get stuck, feel free to ask for help. |
Chris, refactored into scoop-base according to the suggestions. |
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.
removed
// The buckets file (https://github.com/lukesampson/scoop/blob/master/buckets.json) changes very rarely. | ||
// Cache it for the lifetime of the current Node.js process. | ||
buckets = null | ||
|
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.
i think this should move to base and was left out in the refactor
Didn't get you, Jonathan. |
I removed that comment, it was made by mistake and you can ignore it. Sorry for not writing that more clearly. |
Made changes - refactoring of description. Am I missing something else, please let me know if any. |
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.
Didn't notice the review was in draft, now you can see my review suggestions.
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.
Also this one
Got it, will work on that. |
Co-authored-by: jNullj <15849761+jNullj@users.noreply.github.com>
…er with createTestService.
@jNullj , changes are done accordingly. Can you please review it once and let me know if there are any additional changes required. |
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.
🚀 Updated review app: https://pr-10627-badges-shields.fly.dev |
Thanks for picking up the review on this one @jNullj I've just had a look over this. I have one further request for an improvement: Can we move After, its good to go. Nice work, both. |
|
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.
thanks
Hi Team,
Added scoop-license badge.
closes - #10297