csse-uoft / ckanext-udc

GNU Affero General Public License v3.0
1 stars 0 forks source link

Maturity Level % not updating past 2nd "level" #1

Closed bgajdero closed 1 year ago

bgajdero commented 1 year ago

When adding more than two levels, updating an input field does not update the % markers.

example: https://data.urbandatacentre.ca/dataset/edit/50th-percentile-rent-estimates

bgajdero commented 1 year ago

This missing % updated on the tab labels. The % is updated inside the tab's content.

LesterLyu commented 1 year ago

Looks like the maturity level index must be in a sequence:

[{
        "title": "Maturity Level 1 (Basic Information)",
        "name": "maturity_level_1",
        "fields": ...
    },

    {
        "title": "Maturity Level 2 (Privacy)",
        "name": "maturity_level_2",
        "fields": ...
    },

    {
        "title": "Maturity Level 3 (Content)",
        "name": "maturity_level_3",
        "fields": ...
    },
    {
        "title": "Maturity Level 4 (FAIR)",
        "name": "maturity_level_4",
        "fields": ...
    },
    {
        "title": "Maturity Level 5 (Quality)",
        "name": "maturity_level_5",
        "fields": ...
bgajdero commented 1 year ago

You mean the number in "maturity_level_XX" myst be X = 1,2,3,4,etc?

LesterLyu commented 1 year ago

You mean the number in "maturity_level_XX" myst be X = 1,2,3,4,etc?

Yes

bgajdero commented 1 year ago

Created a new issue for this https://github.com/csse-uoft/ckanext-udc/issues/4