inveniosoftware / inveniosoftware/flask-menu

Raise warning when `order` values are duplicated

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
54
Forks
43
PR merge metrics
No merged PRs in 30d

Description

We should raise a non-fatal warning if more than one menu entry has the same `order` value, as this will result in buggy behaviour (e.g. items being randomly reordered between page loads).

Such a warning would have likely prevented https://github.com/inveniosoftware/invenio-app-rdm/issues/3432 from occurring.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.