mapswipe
mapswipe copied to clipboard
BF tutorial uses project imagery
Describe the bug When opening the tutorial, the (satelllite) imagery shown appears to be the one specified for the project, not for the tutorial.
App version 2.0.10
To Reproduce Open the tutorial in 2 projects that use the same one, but different imagery and notice that the tutorial imagery is different
This actually is the same issue as #213
Summary of our discussion with @Hagellach37
- this happens because we are using the wrong data source in the code (app side)
- the tutorial data is actually loaded, but we don't make use of it in the app (or rather, we use some of it, like example images, but not the bits relating to this ticket)
- possible solutions:
- replace the project object with the tutorial object when starting the tutorial. Downsides are big, but the main one is that we'd need to reload the project data when existing the tutorial, that logic does not exist and would be annoying to implement. Second problem is synchronising loading of project level data and group level data so the former does not overwrite the latter.
- a better solution is to pull the entire tutorial "project level" object under the project data (eg. under
project.tutorialData) so we can then check if we're in tutorial mode in the various presentation components and use the appropriate data element.
We'll go with the second option which has no major drawbacks and is relatively easy to implement.