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
Migrating backdropscreensaver, filterdialog and fetchhelper to ES6 #1089
Conversation
@cromefire I changed the title to a more descriptive one, so it's easier to sort among all the issues. Hope it's fine 😊. |
Well there was planned to be 3 more files in here if I find some time again |
@cromefire Feel free to change it once they are here. But, anyway, I would stick with adding the modules' names to the titles, all other PRs had it and it makes it easier to track. No worries if it's long (as long as GH doesn't break :P) |
Not really tested manually yet, if someone could either test it or tell me what to test |
I can't find much more errors, review pls |
We have like 6 files called plugin.js, so I renamed it again to make it more clear :) I can review and test it tonight. |
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.
Looks good after Dmitry's comments are addressed.
Fixed |
@cromefire Done. This is good to go as soon as @dmitrylyzo approves the changes :) |
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.
OK
The only thing left is that paramsToString
adds an empty string param to the URL. There was a check for an empty string. In fact, fetchHelper
isn't used with "params", so this may probably be omitted.
Test code
at the end of fetchHelper.js
console.debug(paramsToString({
a: 2,
b: 0,
c: true,
d: false,
e: '123',
f: '',
g: null,
h: undefined
}));
Output
a=2&b=0&c=true&d=false&e=123&f=
f=
- empty string param
Will check for that too |
@cromefire if you merge develop we can merge this. |
So rebase on |
Or just on |
Oops I meant master. |
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
Done |
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
Hold this for a sec I can some errors testing it |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Not sure about SonarCloud "code smells" |
Okay forgot to pull, never mind...
Yeah they smell... stuff. That function is explicitly written to do exactly why they "smell" (with the exception that I use a |
And I don't think I can set them as ignored |
Changes
Migrating:
Issues
Relates to: #868