We updated the name
of a smart action. But the new smart action name is not displayed in Forest Admin frontend, where we still see the previous name. This is an issue related to the smart action name only: all the other changes to the smart action are in place correctly.
This happens since today: yesteday we had other changes to the very same smart action name and everything worked fine.
Expected behavior
We have a smart action defined like this:
collection('Booking', {
fields: [
{
// ...
},
],
actions: [
{
name: 'Create Custom Payment Deadline',
type: 'single',
endpoint: '/forest/actions/some-endpoint',
httpMethod: 'POST',
fields: [
// ...
],
},
// ...
],
})
And we can see the action correctly in the Actions
drop down menu of the collection in Forest Admin.
Then we change something in the action (we changed the name and some enum
s in one of the action fields.
In the .forestadmin-schema.json
file we see the changes correctly (diff of the relevant part of the file):
- "name": "Create Custom Payment Deadline",
+ "name": "Payment Deadline — Create Custom",
After refreshing the browser page, Forest Admin is supposed to show all the changes we made.
Actual behavior
The action name is not updated in the Forest Admin frontend. This change to the code of the collection setting is not reflected in the admin panel (screenshot of the diff in the Forest collection definition file):
Failure Logs
No logs with errors are displayed on our side.
Context
- Package Version:
"forest-express-sequelize": "^6.1.4"
- Express Version:
"express": "~4.17.1"
- Sequelize Version:
"sequelize": "^5.21.9"
- Database Dialect:
Sequelize
- Database Version:
postgres (PostgreSQL) 12.2
- Project Name:
Sailsquare