Allow enabling all metadata fields by one click

Created on 2 May 2024, about 1 year ago

Use TableSelect form element on the /admin/config/acquia-dam/metadata page.

✨ Feature request
Status

Active

Version

1.1

Component

User interface

Created by

πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Balu Ertl
  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί
  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom nexusnovaz

    Hi @Balu Ertl,

    Changed the checkboxes to be a tableselect. Tested locally and it seems to work as intended. Please could you review #4

  • Pipeline finished with Failed
    about 1 year ago
    Total: 2965s
    #166579
  • Pipeline finished with Failed
    about 1 year ago
    Total: 2932s
    #166594
  • Issue was unassigned.
  • Status changed to Needs work about 1 year ago
  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

    Hi Tyler, welcome to the Drupal Community! Thanks for picking up this issue. You started the right way but some further changes are still needed. Now tested the current MR and this is how it looked like to me:

    The human labels of metadata fields in the rows display only their first character. This is because the core's Tableselect form element expects row data at an extra level deeper in the #options array key. Also the #header array key has to be under exactly the same name:

    Now we have only one single column so I used β€œcolumn” for the sake of simplicity. But the tech spec shows a clearer example of having multiple columns. Please apply the same changes so you should receive something like this:

    Also, keep in mind that for the easiest way of testing, you need to authenticate your site to an Acquia DAM instance and check how the received data is being displayed. (If you have no access to an Acquia DAM system, then try mock the $display_key_options by filling up made up terms and check the rendered results.)

  • πŸ‡¬πŸ‡§United Kingdom nexusnovaz

    Hi! Thank you for the welcome!

    I've made a change to MR #51. I've now got a result like you do.

    Thank you for the extra information and time you put into your response also!

    Hopefully this is now looking and working as expected!

  • Status changed to Needs review about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom nexusnovaz
  • Pipeline finished with Failed
    about 1 year ago
    Total: 3135s
    #169063
  • Pipeline finished with Failed
    about 1 year ago
    Total: 2823s
    #170180
  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί
  • Pipeline finished with Failed
    10 months ago
    Total: 1012s
    #244811
  • Status changed to Needs work 7 months ago
  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

    As a feature improvement this should target branch 1.1.x. The MR needs to be updated.

  • First commit to issue fork.
  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

    baluertl β†’ changed the visibility of the branch 1.1.x to hidden.

  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί

    baluertl β†’ changed the visibility of the branch 3444915-allow-enabling-all to hidden.

  • πŸ‡­πŸ‡ΊHungary Balu Ertl Budapest πŸ‡ͺπŸ‡Ί
    1. Port changes from MR !51 to branch 1.1.x as MR !95
    2. Remove the unnecessary Form title override, use the Page title from the routing itself instead
    3. Delete the unnecessary fieldset form element
    4. Replace instructions with a much more informative description about the purpose of this page
    5. Invoke the parent form logic to allow alteration by anyone else
    6. Use the action button inherited from the parent form controller
    7. Do not render the form if there is no metadata from the Widen API

    Current implementation:

  • Pipeline finished with Skipped
    5 months ago
    #363981
  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    Looks good! Committed

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024