foodadvisor icon indicating copy to clipboard operation
foodadvisor copied to clipboard

Demo/publication system workflow

Open Mcastres opened this issue 1 year ago • 14 comments

  • This PR adds a Publication workflow system workaround
  • Upgrades to 4.3.8

Mcastres avatar Sep 14 '22 09:09 Mcastres

@dennism501, would you have some time to review this? I fixed a lot of issues, added new users, etc...

Mcastres avatar Sep 23 '22 08:09 Mcastres

Might be outside your scope @Mcastres but could be cool to build some conditionals with this :thinking:

derrickmehaffy avatar Sep 27 '22 15:09 derrickmehaffy

What do you mean exactly @derrickmehaffy?

Mcastres avatar Sep 28 '22 07:09 Mcastres

Hey 👋 Sorry, it seems that I'm out of the loop here. Could you please tell me a bit more about this PR? I'm not sure what has changed, what was the state before and why did it need changing. Also, how would you like this to be tested? Thank you 😊

ivanThePleasant avatar Sep 29 '22 08:09 ivanThePleasant

Sure! Thanks @ivanThePleasant for taking the time to review this! I really appreciate it

A lot of things changed:

  • You don't create the first admin anymore but have pre-created users (credentials in README) in order to provide a better experience inside of the app with an editor and an author users.
  • Introduction of a publication workflow workaround system (see README)
  • Added some plugins from the Marketplace

That is pretty much it. You can test the app by logging as the author, create a new article, and putting it the In review state for the publicationState field. Then log as the editor, see if the article listView page shows you a button allowing you to directly filter the In review articles. Update the article by request changes, still using the publicationStage field etc...

Create restaurants, update some, delete some and that should be good. Also, check if the plugins don't break anything.

Mcastres avatar Sep 30 '22 14:09 Mcastres

What do you mean exactly @derrickmehaffy?

https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/rbac.html#declaring-new-conditions

Basically forcefully limiting what a certain user/role can do depending on states, ect. Adding security to the usability

derrickmehaffy avatar Sep 30 '22 14:09 derrickmehaffy

Oh I'll dig that! Thanks 🙏

Mcastres avatar Sep 30 '22 14:09 Mcastres

Do you have enough information @ivanThePleasant?

Mcastres avatar Oct 05 '22 08:10 Mcastres

Hopefully I can test and review this later today, it's a busy week for me sadly :/

derrickmehaffy avatar Oct 11 '22 16:10 derrickmehaffy

@Mcastres the seeding script is broken, but I presume because you already have seeded data on your machine, you would not notice that. I can see that you've switched to better-sqlite3, but the seed script for yarn seed is looking for sqlite3

ivanThePleasant avatar Oct 14 '22 08:10 ivanThePleasant

Should be good with the before-last commit @ivanThePleasant 👍

Mcastres avatar Oct 14 '22 09:10 Mcastres

Managed to run it, thanks. Lemme check

ivanThePleasant avatar Oct 14 '22 10:10 ivanThePleasant

@Mcastres I noticed some text artifacts on the Content Manager page and also ER chart is throwing an error if you press "Switch to API preview". Is this expected behavior at the moment?

Screenshot 2022-10-14 at 13 07 45 Screenshot 2022-10-14 at 13 07 57

ivanThePleasant avatar Oct 14 '22 10:10 ivanThePleasant

Did you yarn? Because I removed the ER chart plugin already. Should be good for the text overlapping, it was because the uploads folder wasn't correctly copied

Mcastres avatar Oct 14 '22 14:10 Mcastres

I did. Don't know why it's there, but it's still there. But anyway, apart from that it seems to be all ok 👍

ivanThePleasant avatar Oct 17 '22 11:10 ivanThePleasant

Don't forget to build again 😅 Thanks Ivan 🙏 Really appreciated

Mcastres avatar Oct 17 '22 12:10 Mcastres

Not sure if it's related but the cal plugin isn't working (it's cool btw, I might use this for a personal to-do / weekly tracker :thinking:

derrickmehaffy avatar Oct 21 '22 21:10 derrickmehaffy

What is not working in the calendar plugin @derrickmehaffy?

Mcastres avatar Oct 24 '22 12:10 Mcastres

What is not working in the calendar plugin @derrickmehaffy?

It's not showing any articles scheduled to be published.

derrickmehaffy avatar Oct 24 '22 22:10 derrickmehaffy

The plugin is not made to show them this is why :D

Mcastres avatar Oct 25 '22 13:10 Mcastres

It is good to go @derrickmehaffy?

Mcastres avatar Nov 02 '22 10:11 Mcastres

It is good to go @derrickmehaffy?

Yeah it's fine, the other best practices suggestions I made I'll just do myself in another PR.

derrickmehaffy avatar Nov 02 '22 13:11 derrickmehaffy