Skip to content
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

Structuring jsreport entities into folders #250

Closed
pofider opened this issue Dec 7, 2016 · 8 comments
Closed

Structuring jsreport entities into folders #250

pofider opened this issue Dec 7, 2016 · 8 comments

Comments

@pofider
Copy link
Contributor

pofider commented Dec 7, 2016

This have became the most requested feature recently.

The main motivation is that it is hard to work with large numbers of templates in the studio. It is ok with 30, but some users have already 100 and this is too much. They need to structure them into modules.

  • We need a tree in studio
  • The current strict grouping by entity type will be removed
  • We need to support all store drivers so we need to have new attribute "folder" on each entity and new entity type "folder"
  • The fs-store should be probably storing the entities in the real directories, but we need to find a way how to distinguish between entity types
  • Would be nice if we can specify user permissions to the whole folder

I was thinking a while that the better solution to the problem would be using lables. This is more powerful because one template can have multiple labels where it cannot have multiple folders. Also assigning the permission based on the label is technically easier than to the folder. However it still seems to me that the folders are more natural to the users so we likely do it the folders way.

Short discussion here - jsreport/jsreport-studio#14

@bjrmatos
Copy link
Collaborator

bjrmatos commented Dec 8, 2016

both solutions sounds great! can we have both? but i like the label approach more, because it is the easier solution and users can decide if they like to view the resources grouping by entity type (the current one) or by the label. Maybe an organization based on folders sounds more natural but maybe is too much complexity?

@pofider
Copy link
Contributor Author

pofider commented Dec 8, 2016

Everyone wants to have both :) It is true that the labels are very easy to do and folders will likely require breaking changes => should be part of the (spring?) jsreport@2

I've some more plans with folders. I would love to be able to download font-awesome or bootstrap, and extract it somewhere to data folder. fs-store would automatically recognize these unknown files as assets and the studio would display it in the same folder structure in ui. This would feel more natural and we can switch to the current config.json based format when user actually adds some additional properties like permissions or labels.

@picibirdAdmin
Copy link

+1 for folders definately. We use tags to target report types. We would use folders to structure reports for customers and projects. Tags are better than folders but we would love both options. Keep up the good work.

@rashmim00
Copy link

+1 for folders.

@XjeaxaxX
Copy link

+1 for folders!!!!!!

@sdnetwork
Copy link

+1 for folders

1 similar comment
@ThePolymorph
Copy link

+1 for folders

@pofider
Copy link
Contributor Author

pofider commented Dec 12, 2018

📂 📂 📂
Folders feature is now ready for use in jsreport 2.3.0

@pofider pofider closed this as completed Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants