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

[editor] Limit more fields (website, menu, social medias, etc...) for some POI types #8212

Merged
merged 1 commit into from
May 22, 2024

Conversation

Arthur-GYT
Copy link
Contributor

All is in the title ^^.

Related to #8052 (comment)

@Arthur-GYT Arthur-GYT force-pushed the fix_website_menu branch 2 times, most recently from 56b8b9e to 60655a3 Compare May 18, 2024 18:08
@Jean-BaptisteC
Copy link
Member

The right solution is to update editor.config

@Arthur-GYT Arthur-GYT marked this pull request as draft May 18, 2024 18:18
@Arthur-GYT Arthur-GYT closed this May 18, 2024
@Arthur-GYT Arthur-GYT reopened this May 18, 2024
@Arthur-GYT
Copy link
Contributor Author

Arthur-GYT commented May 18, 2024

@Jean-BaptisteC It's strange. I test it with restaurant and it appear for haircut. Do I miss something ?

EDIT : I found the problem. My mistake ^^.

@Arthur-GYT Arthur-GYT requested a review from biodranik May 18, 2024 19:29
@Arthur-GYT Arthur-GYT marked this pull request as ready for review May 18, 2024 20:00
@Arthur-GYT Arthur-GYT changed the title [editor] Limit website menu field for some types of amenity [editor] Limit more fields (website, menu, social medias, etc...) for some types POI May 18, 2024
@Arthur-GYT Arthur-GYT changed the title [editor] Limit more fields (website, menu, social medias, etc...) for some types POI [editor] Limit more fields (website, menu, social medias, etc...) for some POI types May 18, 2024
@Arthur-GYT
Copy link
Contributor Author

@biodranik I've changed the scope of the PR. I've also fixed the fact that, for example, parking lots were displaying fields for social medias in the editor (which doesn't make sense).

mDetailsBlocks.put(Metadata.MetadataType.FMD_WEBSITE_MENU, websiteMenuBlock);
mDetailsBlocks.put(Metadata.MetadataType.FMD_EMAIL, emailBlock);
mDetailsBlocks.put(Metadata.MetadataType.FMD_CONTACT_FACEBOOK, facebookContactBlock);
mDetailsBlocks.put(Metadata.MetadataType.FMD_CONTACT_INSTAGRAM, instagramContactBlock);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did it work before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, it ignored the configuration described in editor.config. You need to add the field as shown here to make it take this configuration into account.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@biodranik Do I need to change anything?

data/editor.config Show resolved Hide resolved
@Arthur-GYT Arthur-GYT force-pushed the fix_website_menu branch 2 times, most recently from 41f43b3 to 9bfcd94 Compare May 19, 2024 09:10
@Arthur-GYT Arthur-GYT requested a review from biodranik May 19, 2024 09:12
Signed-off-by: Arthur-GYT <a.gayot@posteo.com>
Copy link
Member

@biodranik biodranik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Did you test it? Note that debug build of OM uploads data into the dev server, and you need a separate account there:

https://master.apis.dev.openstreetmap.org/

If you need to edit some data from the main OSM server, you can upload it to the dev server using this tool: https://github.com/Zverik/osm_to_sandbox

@Jean-BaptisteC PTAL if you have time.

Copy link
Member

@Jean-BaptisteC Jean-BaptisteC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vng vng merged commit 115782d into organicmaps:master May 22, 2024
15 checks passed
@Arthur-GYT Arthur-GYT deleted the fix_website_menu branch May 22, 2024 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants