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

Some users don’t have their maps in "my maps" page #1448

Closed
ldidry opened this issue Dec 5, 2023 · 11 comments
Closed

Some users don’t have their maps in "my maps" page #1448

ldidry opened this issue Dec 5, 2023 · 11 comments
Labels

Comments

@ldidry
Copy link
Contributor

ldidry commented Dec 5, 2023

Describe the bug
In "my maps" page, some users (not all of them) don’t see their maps. It can be no maps, or just some of them

To Reproduce
Steps to reproduce the behavior:

  1. Go to "my maps" page
  2. no maps, or not all of them

Expected behavior
Have all of your maps

Additional context
It’s a regression due to 9af5375. I reverted the commit and it’s now working as before.

Problem: I didn’t experience the bug myself, so I can’t dig it deep. I just now that reverting the commit fixes it.

@ldidry ldidry added the bug label Dec 5, 2023
@yohanboniface
Copy link
Member

@ldidry ah, damn, that may be a side effect of #1196 : "My maps" should logically now point to this dashboard page, but I realize that for framacarte, given we quite changed the HTML, this is certainly not the case, and it may be not easy to use it. What do you think ?

This is one more occasion for me to think "how can I properly communicate about the changes to the maintainers of uMap servers". If you have suggestion, I'm happy to ear them :)

@yohanboniface
Copy link
Member

Here is a diff:

diff --git a/templates/umap/navigation.html b/templates/umap/navigation.html
index 1be9c0c..fdd8fb3 100644
--- a/templates/umap/navigation.html
+++ b/templates/umap/navigation.html
@@ -4,7 +4,7 @@
     <div class="container">
         <ul class="nav navbar-nav navbar-right">
           {% if user.is_authenticated %}
-          <li><a href="{% url 'user_maps' user.username %}">{% trans "My maps" %} ({{ user }})</a></li>
+          <li><a href="{% url 'user_dashboard' %}">{% trans "My maps" %} ({{ user }})</a></li>
           {% else %}
           <li><a href="{% url 'login' %}" class="login">{% trans "Log in" %} / {% trans "Sign in" %}</a></li>
           {% endif %}

Which then points to the dashboard, which looks like this:

image

@ldidry should I make a PR ?

@ldidry
Copy link
Contributor Author

ldidry commented Dec 6, 2023

should I make a PR ?

No, thank you, I fixed the template.

"how can I properly communicate about the changes to the maintainers of uMap servers". If you have suggestion, I'm happy to ear them :)

Maybe a "⚠️ Be careful with this changes!" section in releases or something like that? I follow the RSS feed to know when there’s a new release, so I would personally see such communication.

@ldidry
Copy link
Contributor Author

ldidry commented Dec 6, 2023

Anyway, thank you for the fix (I’m waiting for an impact user to say if it’s all right).

@almet
Copy link
Member

almet commented Dec 6, 2023

Hey @ldidry 🤗

On some other projects, we were adding some more information in the changelogs, to make this more easy to spot.

We could then have different sections in the changelog, like:

  • Breaking Changes
  • New features
  • Documentation
  • Bug Fixes
  • Internal changes

Would that make it easier to get the information?

@ldidry
Copy link
Contributor Author

ldidry commented Dec 7, 2023

Add a link to the changelog in the releases and it should be enough 🙂

@yohanboniface
Copy link
Member

Not sure where you expect this link, @ldidry ?

We maintain this and this already, but it may be easy to add the info somewhere else :)

@ldidry
Copy link
Contributor Author

ldidry commented Dec 7, 2023

I thought that the changelog file was bigger than the release text and that you wanted to put the sections in only the file.

The different sections in changelog (file and release) will be good 👍

@yohanboniface
Copy link
Member

Should we close here ? :)

@ldidry
Copy link
Contributor Author

ldidry commented Dec 15, 2023

Sure, sorry.

@ldidry ldidry closed this as completed Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants