Closed troughc closed 1 week ago
@dev-aravind there seems to be a backend issue while saving taxonomy. Please look into this.
@SyamBabu-M The bug is fixed in staging please have a look and let me know if you find any issues.
@dev-aravind I just found a new bug in taxonomy. There is an issue with how adminOnly is handled in the add taxonomy API. It works fine with edit taxonomy API. Please look into this.
@troughc This is fixed in staging now. You can check the linked PR to test this.
Tests: Tested: there is no admin only field included when you are mapping a new taxonomy to an existing field. PASSED
Tested: You should not be able to change class type in the second screen (you choose it on the first screen). This is not true when you are creating a taxonomy for an existing or new field. the class type should be grayed out: PASSED
Tested: I am getting an error in staging when I try to create and SAVE a new taxonomy in Tout Culture - (test taxonomy). It said it already existed, however, it then created it anyway
Two new issues have been discovered when testing this:
@sahalali should these bugs be addressed in this issue or should we open a new issue?
Can you please review this in prod?
Hey there, whilst writing up the help guide, I tried to make Disciplines and Event types available as a Filter from the Signe Laval calendar. When I tried to save the taxonomy I got an error message - that the name was already used. I think this is because Maude from Signe Laval renamed Event type 'Discipline" and then created a custom taxonomy called "Event type" (but all in French). @AbhishekPAnil you can ask @saumier about this if you don't remember - I may not be in the meeting tomorrow (but I will try to join).
Custom taxonomy:
Renamed Standard taxonomy:
Can you please review this in prod? @sahalali I tested this in prod and this is working fine in production.
cc @AbhishekPAnil Test the issue Caitlin in the above comment https://github.com/culturecreates/footlight-app/issues/1129#issuecomment-2153095291.
cc @SyamBabu-M Please check and rectify this code and its other parts .
<Col style={{ flex: '1' }}>
<DateAction
iconrender={<PlusOutlined style={{ fontSize: '24px' }} />}
label={t('dashboard.taxonomy.selectType.newField')}
style={{ height: '104px', padding: 16 }}
onClick={() => navigationHandler('not-dynamic')}
/>
</Col>
<Col style={{ flex: '1' }}>
<DateAction
data-cy="button-taxonomy-existing-field"
iconrender={<DatabaseOutlined style={{ fontSize: '24px' }} />}
label={t('dashboard.taxonomy.selectType.existingField')}
disabled={standardFields.length < 1 && selectedClass.label !== '' ? true : false}
style={{
height: '104px',
padding: 16,
...(standardFields.length < 1 && selectedClass.label !== '' && buttonStyles),
}}
onClick={() => navigationHandler('dynamic')}
/>
</Col>
I think there might be a logical issue here and that might have caused the mappedToField to appear in the backend.
@AbhishekPAnil I have added the potential fix.
Make sure that user cannot create two taxonomies of same name in the same class. Make sure that standard and dynamic taxonomies can be created and updated. copy paste current create a new taxonomy link into a new tab and try to create a new dynamic taxonomy from there.
Expected behaviour: Instead, I should see this message but stay on the page (similar to the one shown above, but reworded). Ideally I would like the message to appear in red below the Taxonomy name field. If this is not possible, please use a popup message.
English
This taxonomy name is already taken. Please choose another name.
French
Ce nom de taxonomie est déjà pris. Veuillez choisir un autre nom.
@AbhishekPAnil can you deploy this one too? cc @SyamBabu-M
there is no admin only field included when you are mapping a new taxonomy to an existing field.
You should not be able to change class type in the second screen (you choose it on the first screen). This is not true when you are creating a taxonomy for an existing or new field. the class type should be grayed out
I am getting an error in staging when I try to create and SAVE a new taxonomy in Tout Culture - (test taxonomy). It said it already existed, however, it then created it anyway
I think Taxonomies needs to be retested thoroughly.