Review of "OpenWeather" version 107

Details Page Preview

Display weather information for any location on Earth in the GNOME Shell

Extension Homepage
https://gitlab.com/skrewball/openweather

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

All Versions

Previous Reviews on this Version

skrewball posted a review
The next version will remove the legacy Lang class as well as darksky as they are ending their API by the end of the year.
JustPerfection waiting for author
1. Why do you use version for Soup? (line 47 extension.js)? It's getting imported in GNOME Shell before you do that: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/environment.js#L31-41 2. Lang is a deprecated module. Please remove it for the next version: https://gjs.guide/extensions/review-guidelines/review-guidelines.html#general-advice Learn how to remove Lang from your code: https://gjs.guide/guides/gjs/legacy-class-syntax.html 3. Null out `openweatherMenu` in `disable()`. 4. What is the use case for those timeouts in prefs.js? If you need any help with your extension you can ask us on: - [GNOME Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions
skrewball posted a review
I was getting an error with Soup after forking the repo: "Requiring Soup but it has 2 versions available; use imports.gi.versions to pick one". Requiring the specific version fixed the location search issue. It looks like the timeouts were put there by the previous dev to prevent it from continuously updating on refresh. Removing Lang is next on my to-do list. I assume I need to upload a new version to add the null in disable()? Thanks!
JustPerfection active
Prefs code needs some clean up for sure and yes, you need to upload a new version for that. Please fix it for the next version.
JustPerfection posted a review
btw, remove `localedir` from `metadata.json`.
skrewball posted a review
Honestly, quite a bit of the code needs some cleaning up lol. Would adding the null to disable and removing the localedir in metadata.json be ok to get a new version approved for users? Then fixing prefs and removing lang in the version after that.
JustPerfection posted a review
Yes! You can send the next one with those two fixes.
skrewball posted a review
I just noticed this version was active haha, so I'll do more cleanup before submitting the next version. Thanks again! :)