Skip to content
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

Don't ask for building color if building is underground #635

Open
RubenKelevra opened this issue Sep 2, 2024 · 5 comments
Open

Don't ask for building color if building is underground #635

RubenKelevra opened this issue Sep 2, 2024 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@RubenKelevra
Copy link

After SCEE asked me if a building is completely underground it continued to ask me what the building color is.

How to Reproduce

  • Go to a building on the map with the following tags:

Screenshot_2024-09-02-18-47-30-586-edit_de westnordost streetcomplete expert

  • See a building color quest pop up.

Expected Behavior
No building color quest

Does it happen in normal StreetComplete?
Nope, this quest does not exist in SC

Versions affected
Android 12
SCEE Version 58.22

@RubenKelevra RubenKelevra added the bug Something isn't working label Sep 2, 2024
@Helium314 Helium314 added the enhancement New feature or request label Sep 2, 2024
@mnalis
Copy link
Collaborator

mnalis commented Sep 4, 2024

@RubenKelevra would you perhaps like to make a PR for it? It is very easy:

@RubenKelevra
Copy link
Author

Well, I would, but I have neither a build setup for the app setup, nor does the master of the app currently work on my device - as SC 59.x is still crashing for me at startup:

streetcomplete#5850

Apart from that, I have zero knowledge of Java / Kotlin. ;)

@mnalis
Copy link
Collaborator

mnalis commented Sep 4, 2024

Well, I would, but I have neither a build setup for the app setup

Luckily @RubenKelevra, none is needed to make a pull request for this! If you click on those 2 links above I've sent, you'll see that is a simple matter of editing one text string and adding and location != underground line into it (at the end)

Apart from that, I have zero knowledge of Java / Kotlin. ;)

That is not needed either. Knowing how to copy/paste one line of text between two other lines should be sufficient 😺

So it would change like this:

          and !building:colour
          and (!indoor or indoor = no)
          and wall !~ no
+         and location != underground

nor does the master of the app currently work on my device - as SC 59.x is still crashing for me at startup

I've seen that issue... Hopefully it will get resolved, but in order to make a "Pull request" it is not needed for you to have a Kotlin development environment or even have any ability to create .apk files. It is just a matter of editing a text file (can be done in GitHub web browser window too!) and clicking a few links in a webpage.

If you'd like to try, I can help you around if you get stuck, but I think you can do it easily by yourself. You already know how to do 1. fork the repo, which is about as hard as the rest of the steps 😃

@mnalis
Copy link
Collaborator

mnalis commented Sep 4, 2024

But, if you would like to test your changes too (which is not required, we can do that for you), it is also easily achievable without any android development knowledge or having Android development tools installed....

So, if you want, after doing the edits, in GitHub you could click on Actions tab in your fork and choosing Build debug APK, and GitHub would prepare it for you automatically.

Best thing? Such a development build has different appid (and yellow icon color instead of blue), so it can be installed alongside your existing (broken) SC or SCEE installation, without affecting it at all. That would enable you not only to check if you've fixed this issue with underground building, but also to play around trying to reproduce your crashing issue.

But as noted above, building APK is not required to make a pull request, it is just additional thing if you want to do it.

@HolgerJeromin
Copy link

I did a SC PR just with the mobile browser, fetched the build, tested it while being on holiday :)

Hardest part was to extract the apk out of the zip file :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants