Skip to content

Add simple Create Project Structure web action #1193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 38 commits into
base: develop
Choose a base branch
from

Conversation

MustafaJafar
Copy link
Contributor

Changelog Description

resolve #914
A simple Create Project Structure web action that creates the folder structure as defined in project settings: ayon+settings://core/project_folder_structure

image

image

Testing notes:

  1. Update core addon
  2. Test CLI action via, it should create folders as per settings.
ayon_console.exe  createprojectstructure --project <project_name>
  1. Run the web action action, it's found on any folder in the project on the web UI, it should create folders as per settings.

BigRoy and others added 22 commits June 20, 2024 20:19
@MustafaJafar MustafaJafar added the type: enhancement Improvement of existing functionality or minor addition label Mar 13, 2025
@MustafaJafar MustafaJafar self-assigned this Mar 13, 2025
@ynbot ynbot added the size/XS label Mar 13, 2025
@ynbot ynbot moved this from Merge Requested to Review In Progress in PR reviewing Mar 19, 2025
@BigRoy BigRoy moved this from Review In Progress to Pending Review in PR reviewing Mar 27, 2025
@ynbot ynbot moved this from Pending Review to Review In Progress in PR reviewing Apr 2, 2025
@m-u-r-p-h-y
Copy link
Member

Having this available on every folder seems odd. It creates a false expectation that the folder you are running the action on will be created, not just project ones.

I think there is a better place for this on right mouse click on a project.
image

would it be difficult to do?

@BigRoy
Copy link
Collaborator

BigRoy commented Apr 2, 2025

Having this available on every folder seems odd. It creates a false expectation that the folder you are running the action on will be created, not just project ones.

I think there is a better place for this on right mouse click on a project. image

would it be difficult to do?

I don't believe web actions currently allow that, right @martastain @Innders ?

@iLLiCiTiT
Copy link
Member

I don't believe web actions currently allow that, right @martastain @Innders ?

Not in Web UI. And if it would be added, it would be in next release of server, which would post-pone this PR again.

@Innders
Copy link
Member

Innders commented Apr 2, 2025

We are definitely going to need to run actions in the context of just a project and maybe even with no context... Just run the action on a studio.

There was this idea of having a page where you could see all of your actions in one place. Maybe this is the place you can run any action.

If the action requires some context, you must provide it before it can run.

This could probably be an addon that's created.

@MustafaJafar
Copy link
Contributor Author

Having this available on every folder seems odd. It creates a false expectation that the folder you are running the action on will be created, not just project ones.
I think there is a better place for this on right mouse click on a project. image
would it be difficult to do?

I don't believe web actions currently allow that, right @martastain @Innders ?

Should we do it in a follow up PR?

@MustafaJafar
Copy link
Contributor Author

@iLLiCiTiT since I've added nxtools, poetry now requires to update the lock file.
I'm not able to do becasue of an issue in my dev environment.

pyproject.toml changed significantly since poetry.lock was last generated. Run `poetry lock` to fix the lock file.
!!! Poetry environment installation failed

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Apr 7, 2025

@iLLiCiTiT since I've added nxtools, poetry now requires to update the lock file.
I'm not able to do becasue of an issue in my dev environment.

pyproject.toml changed significantly since poetry.lock was last generated. Run `poetry lock` to fix the lock file.
!!! Poetry environment installation failed

You didn't have to add it :) . You can just remove it, or lock poetry (as suggested), or remove lock file (probably is not needed) and add the filename to gitignore.

@MustafaJafar
Copy link
Contributor Author

You didn't have to add it :) . You can just remove it, or lock poetry (as suggested), or remove lock file (probably is not needed) and add the filename to gitignore.

I fixed my issue and updated the poetry lock for consistency.
If it isn't necessary, could we clean it up it a follow-up PR? Honestly, I don't want to touch something I don't know the effects of.

@MustafaJafar
Copy link
Contributor Author

MustafaJafar commented Apr 15, 2025

The poetry file has gone now :D
@iLLiCiTiT what should we do with this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
Status: Review In Progress
Development

Successfully merging this pull request may close these issues.

AY-5076_Ayon: Folder creation
7 participants