Techbot / JiGS-RPG-engine

Open Source Php/NodeJs Online RPG and Trading Game Engine
https://www.eclecticmeme.com
GNU General Public License v3.0
71 stars 20 forks source link

create admin view to monitor flags #179

Open Techbot opened 2 months ago

Techbot commented 2 months ago

There are some example views with the module and a recipe book somewhere.

pair programming required.

left23 commented 1 month ago

There are basic Views visible on the /user/* pages. If the user has paragraphs and nodes flagged, these items will display, with their ID.

The 2 main things missing from the Views right now

  1. an indication of which node the flagged paragraphs are on
  2. the flag name (machine name)

Without these, a list of flagged paragraphs aren't that useful.

1 Isn't related to Flags, as such. I might have found some hints. https://www.drupal.org/project/paragraphs_admin/issues/3406566 https://www.drupal.org/forum/support/module-development-and-code-questions/2023-04-24/way-to-query-all-nodes-that-use-a-specific-paragraph-field

2 I can't find anything online about flag names and the language is confusion - on the Create flag form it is called "label". In the data base I think it's the flag_id (not to be confused with the entity id). When we were looking at how to access the flag machine name, @Techbot opted for an SQL query https://github.com/Techbot/JiGS-RPG-engine/commit/5201df2e84dcd8441ae6506832c82ea936a7514f

Techbot commented 1 month ago

Patch https://www.drupal.org/project/flag/issues/2723703