After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782861 - Fixes for newer GJS versions
Fixes for newer GJS versions
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-20 11:27 UTC by Marcus Lundblad
Modified: 2017-11-13 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
utils: Remove unused argument (807 bytes, patch)
2017-11-06 21:05 UTC, Marcus Lundblad
committed Details | Review
mapView: Don't use object when undefined (741 bytes, patch)
2017-11-06 21:14 UTC, Marcus Lundblad
committed Details | Review
placeEntry: Remove unused arguments (967 bytes, patch)
2017-11-06 21:20 UTC, Marcus Lundblad
committed Details | Review
mainWindow: Remove unused arguments (919 bytes, patch)
2017-11-06 21:26 UTC, Marcus Lundblad
none Details | Review
mainWindow: Remove unused arguments (975 bytes, patch)
2017-11-06 21:35 UTC, Marcus Lundblad
none Details | Review
placePopover: Remove unused argument (986 bytes, patch)
2017-11-06 21:44 UTC, Marcus Lundblad
committed Details | Review
searchPopover: Remove unused argument (1.01 KB, patch)
2017-11-06 21:49 UTC, Marcus Lundblad
committed Details | Review
routeEntry: Check presence of icon window (857 bytes, patch)
2017-11-06 22:02 UTC, Marcus Lundblad
committed Details | Review
routeQuery: Initialize the arriveBy property (762 bytes, patch)
2017-11-06 22:06 UTC, Marcus Lundblad
committed Details | Review
openTripPlanner: Check existence of color properties befor use (1.17 KB, patch)
2017-11-06 22:12 UTC, Marcus Lundblad
committed Details | Review
mapMarker: Remove unused arguments (906 bytes, patch)
2017-11-06 22:15 UTC, Marcus Lundblad
none Details | Review
transitBoardMarker: Remove unused arguments (1.05 KB, patch)
2017-11-06 22:17 UTC, Marcus Lundblad
committed Details | Review
mapView: Remove unused arguments (1.19 KB, patch)
2017-11-06 22:25 UTC, Marcus Lundblad
committed Details | Review
placeStore: Check property before use (850 bytes, patch)
2017-11-07 21:08 UTC, Marcus Lundblad
committed Details | Review
utils: Export debug variable using 'var' (793 bytes, patch)
2017-11-07 21:11 UTC, Marcus Lundblad
committed Details | Review
osmTypes: Export global constant with 'var' (1.24 KB, patch)
2017-11-07 21:15 UTC, Marcus Lundblad
committed Details | Review
mapMarker: Remove unused arguments (2.15 KB, patch)
2017-11-07 21:21 UTC, Marcus Lundblad
none Details | Review
mainWindow: Remove unused arguments (975 bytes, patch)
2017-11-07 21:28 UTC, Marcus Lundblad
none Details | Review
http: Check property before use in expression (839 bytes, patch)
2017-11-07 21:45 UTC, Marcus Lundblad
committed Details | Review
mapMarker: Remove unused arguments (2.46 KB, patch)
2017-11-07 21:55 UTC, Marcus Lundblad
committed Details | Review
mapWalker: Don't use unexisting PlaceType enum constant (771 bytes, patch)
2017-11-07 21:58 UTC, Marcus Lundblad
committed Details | Review
socialPlaceMatcher: Compensate for JS string indecies starting at 0 (1.10 KB, patch)
2017-11-08 21:31 UTC, Marcus Lundblad
none Details | Review
socialPlaceMatcher: Compensate for JS string indecies starting at 0 (1.05 KB, patch)
2017-11-08 21:32 UTC, Marcus Lundblad
committed Details | Review
facebookBackend: Check for property before use (889 bytes, patch)
2017-11-08 21:46 UTC, Marcus Lundblad
committed Details | Review
mainWindow: Remove unused arguments (1.62 KB, patch)
2017-11-09 20:42 UTC, Marcus Lundblad
none Details | Review
mainWindow: Remove unused arguments (2.01 KB, patch)
2017-11-09 20:48 UTC, Marcus Lundblad
committed Details | Review
exportViewDialog: Remove unused argument (1.07 KB, patch)
2017-11-10 07:36 UTC, Marcus Lundblad
committed Details | Review
placeStore: Fix the exists method (970 bytes, patch)
2017-11-12 20:37 UTC, Marcus Lundblad
committed Details | Review
mapView: Remove extra arguments to function (943 bytes, patch)
2017-11-12 20:42 UTC, Marcus Lundblad
committed Details | Review
osmEditDialog: Initialize OSM type when adding new object (1.14 KB, patch)
2017-11-13 20:24 UTC, Marcus Lundblad
committed Details | Review

Description Marcus Lundblad 2017-05-20 11:27:21 UTC
I actually tried running from Flatpak (running on my work laptop, my home development system run the Nvidia driver) and found some bugs due to newer GJS, which seems to be stricter at using undefined properties on JS objects. In some places we create an empty object (using = {}) and then at some point does an "if (obj.property). We should probably use arrays for these instead, I think.
Comment 1 Marcus Lundblad 2017-11-06 21:05:35 UTC
Created attachment 363091 [details] [review]
utils: Remove unused argument
Comment 2 Marcus Lundblad 2017-11-06 21:14:14 UTC
Created attachment 363092 [details] [review]
mapView: Don't use object when undefined
Comment 3 Marcus Lundblad 2017-11-06 21:20:21 UTC
Created attachment 363093 [details] [review]
placeEntry: Remove unused arguments
Comment 4 Marcus Lundblad 2017-11-06 21:26:21 UTC
Created attachment 363094 [details] [review]
mainWindow: Remove unused arguments
Comment 5 Marcus Lundblad 2017-11-06 21:35:35 UTC
Created attachment 363095 [details] [review]
mainWindow: Remove unused arguments
Comment 6 Marcus Lundblad 2017-11-06 21:44:37 UTC
Created attachment 363098 [details] [review]
placePopover: Remove unused argument
Comment 7 Marcus Lundblad 2017-11-06 21:49:25 UTC
Created attachment 363099 [details] [review]
searchPopover: Remove unused argument
Comment 8 Marcus Lundblad 2017-11-06 22:02:51 UTC
Created attachment 363101 [details] [review]
routeEntry: Check presence of icon window
Comment 9 Marcus Lundblad 2017-11-06 22:06:45 UTC
Created attachment 363102 [details] [review]
routeQuery: Initialize the arriveBy property
Comment 10 Marcus Lundblad 2017-11-06 22:12:22 UTC
Created attachment 363103 [details] [review]
openTripPlanner: Check existence of color properties befor use
Comment 11 Marcus Lundblad 2017-11-06 22:15:36 UTC
Created attachment 363104 [details] [review]
mapMarker: Remove unused arguments
Comment 12 Marcus Lundblad 2017-11-06 22:17:57 UTC
Created attachment 363105 [details] [review]
transitBoardMarker: Remove unused arguments
Comment 13 Marcus Lundblad 2017-11-06 22:25:50 UTC
Created attachment 363107 [details] [review]
mapView: Remove unused arguments
Comment 14 Marcus Lundblad 2017-11-07 21:08:31 UTC
Created attachment 363174 [details] [review]
placeStore: Check property before use
Comment 15 Marcus Lundblad 2017-11-07 21:11:52 UTC
Created attachment 363175 [details] [review]
utils: Export debug variable using 'var'
Comment 16 Marcus Lundblad 2017-11-07 21:15:37 UTC
Created attachment 363176 [details] [review]
osmTypes: Export global constant with 'var'
Comment 17 Marcus Lundblad 2017-11-07 21:21:02 UTC
Created attachment 363177 [details] [review]
mapMarker: Remove unused arguments
Comment 18 Marcus Lundblad 2017-11-07 21:28:16 UTC
Created attachment 363178 [details] [review]
mainWindow: Remove unused arguments
Comment 19 Marcus Lundblad 2017-11-07 21:45:26 UTC
Created attachment 363180 [details] [review]
http: Check property before use in expression
Comment 20 Marcus Lundblad 2017-11-07 21:55:59 UTC
Created attachment 363181 [details] [review]
mapMarker: Remove unused arguments
Comment 21 Marcus Lundblad 2017-11-07 21:58:20 UTC
Created attachment 363182 [details] [review]
mapWalker: Don't use unexisting PlaceType enum constant
Comment 22 Marcus Lundblad 2017-11-08 21:31:43 UTC
Created attachment 363259 [details] [review]
socialPlaceMatcher: Compensate for JS string indecies starting at 0

The pseudo code for the iterative Levenstein implementation on
Wikipedia assumes 1-indexed input strings. To minimize the impact
just offset the indecies in the comparison statement using
values from the strings.

https://bugzilla.gnome.org/show_bug.cgi?id=789925
Comment 23 Marcus Lundblad 2017-11-08 21:32:29 UTC
Created attachment 363260 [details] [review]
socialPlaceMatcher: Compensate for JS string indecies starting at 0

The pseudo code for the iterative Levenstein implementation on
Wikipedia assumes 1-indexed input strings. To minimize the impact
just offset the indecies in the comparison statement using
values from the strings.
Comment 24 Marcus Lundblad 2017-11-08 21:46:38 UTC
Created attachment 363262 [details] [review]
facebookBackend: Check for property before use
Comment 25 Marcus Lundblad 2017-11-09 20:42:03 UTC
Created attachment 363311 [details] [review]
mainWindow: Remove unused arguments
Comment 26 Marcus Lundblad 2017-11-09 20:48:24 UTC
Created attachment 363312 [details] [review]
mainWindow: Remove unused arguments
Comment 27 Marcus Lundblad 2017-11-09 20:49:23 UTC
Attachment 363091 [details] pushed as bb68e9b - utils: Remove unused argument
Attachment 363092 [details] pushed as c4c0ede - mapView: Don't use object when undefined
Attachment 363093 [details] pushed as 94aa9e0 - placeEntry: Remove unused arguments
Attachment 363098 [details] pushed as 81bec89 - placePopover: Remove unused argument
Attachment 363099 [details] pushed as a542541 - searchPopover: Remove unused argument
Attachment 363101 [details] pushed as 4a80377 - routeEntry: Check presence of icon window
Attachment 363102 [details] pushed as 2dab92c - routeQuery: Initialize the arriveBy property
Attachment 363103 [details] pushed as dbca7ea - openTripPlanner: Check existence of color properties befor use
Attachment 363105 [details] pushed as 08e8094 - transitBoardMarker: Remove unused arguments
Attachment 363107 [details] pushed as 65051d7 - mapView: Remove unused arguments
Attachment 363174 [details] pushed as 42649db - placeStore: Check property before use
Attachment 363175 [details] pushed as 721cd61 - utils: Export debug variable using 'var'
Attachment 363176 [details] pushed as ef88ee5 - osmTypes: Export global constant with 'var'
Attachment 363180 [details] pushed as 48f1078 - http: Check property before use in expression
Attachment 363181 [details] pushed as f7a23af - mapMarker: Remove unused arguments
Attachment 363182 [details] pushed as d48f2b7 - mapWalker: Don't use unexisting PlaceType enum constant
Attachment 363260 [details] pushed as 080ce82 - socialPlaceMatcher: Compensate for JS string indecies starting at 0
Attachment 363262 [details] pushed as 6f4deb9 - facebookBackend: Check for property before use
Attachment 363312 [details] pushed as 865ca35 - mainWindow: Remove unused arguments
Comment 28 Marcus Lundblad 2017-11-10 07:36:38 UTC
Created attachment 363322 [details] [review]
exportViewDialog: Remove unused argument
Comment 29 Marcus Lundblad 2017-11-10 07:44:05 UTC
Comment on attachment 363322 [details] [review]
exportViewDialog: Remove unused argument

Attachment 363322 [details] pushed as 3709dd8 - exportViewDialog: Remove unused argument
Comment 30 Marcus Lundblad 2017-11-12 20:37:58 UTC
Created attachment 363455 [details] [review]
placeStore: Fix the exists method

A condition was broken here resulting in adding favorites
not working.
Comment 31 Marcus Lundblad 2017-11-12 20:42:58 UTC
Created attachment 363456 [details] [review]
mapView: Remove extra arguments to function
Comment 32 Marcus Lundblad 2017-11-12 20:44:01 UTC
Attachment 363455 [details] pushed as 80ddfa7 - placeStore: Fix the exists method
Attachment 363456 [details] pushed as 95975e3 - mapView: Remove extra arguments to function
Comment 33 Marcus Lundblad 2017-11-13 20:24:12 UTC
Created attachment 363547 [details] [review]
osmEditDialog: Initialize OSM type when adding new object

Even though the OSM type is fallbacked to 'node' when serializing
the object so it still worked, this avoids an ugly warning.
Comment 34 Marcus Lundblad 2017-11-13 20:25:07 UTC
Comment on attachment 363547 [details] [review]
osmEditDialog: Initialize OSM type when adding new object

Attachment 363547 [details] pushed as 05705df - osmEditDialog: Initialize OSM type when adding new object