-
Notifications
You must be signed in to change notification settings - Fork 966
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
Feature: consumption templates #4196
Conversation
152d3f7
to
aaae9d6
Compare
Codecov Report
@@ Coverage Diff @@
## dev #4196 +/- ##
==========================================
+ Coverage 95.45% 95.61% +0.16%
==========================================
Files 344 352 +8
Lines 13244 13571 +327
Branches 1084 1088 +4
==========================================
+ Hits 12642 12976 +334
+ Misses 597 590 -7
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This looks very powerful for the permissions and just other stuff. I'll have to look at it more when I can. It seems like a good answer to many requests overall. Nice work so far. |
Thanks mate, yea whatever (/whenever) you can contribute would be awesome, you know I tend to fumble through backend stuff |
997e89e
to
1b4cd92
Compare
9e197e1
to
b04e86e
Compare
Hi again,
i agree this looks powerful and fairly useful for multiple purposes. Maybe this can end up in far future to a complete rewrite of matching document-types, correspondents and tags, then working with a list of rules consisting of conditions and actions, as I earlier suggested. But so far, good work! |
b04e86e
to
a15a142
Compare
1ddf96d
to
aef4d46
Compare
aef4d46
to
c896660
Compare
Turns out you were right stumpy, the default perms on the frontend would apply to these, which got me thinking about this some more. Actually a lot more... I debated this a bit, but I think the best thing is to remove perms from templates (not assigning perms to docs, just no owner / perms on templates themselves). Happy to come up with another solution if you think wise. The biggest issue, I think, is that since templates are potentially applied to sources that have no user in context, so listing the templates would always return all of them (as opposed to only ones they have access to) and so you'd end up with users potentially having their docs affected by templates they cant see. Then theres the fact that sharing is kind of nonsensical (so I considered removing perms but leaving owner, but still previous issue), etc. etc. Overall, seemed too messy and counter-intuitive and I didn't see an obvious simple solution. Again, welcome to thoughts but this way theres one master list and people can either access it, or not. |
Yes, i see the problem. A user would be surprised if they had a document with unexpected tags or even the owner changed from themselves. This seems like a good compromise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm good with this as it. Lets squash and merge it
I think, this feature is more something for the "Admins" and not for normal users. |
You can set permissions for this just like anything else in the app |
* Initial implementation of consumption templates * Frontend implementation of consumption templates Testing * Support consumption template source * order templates, automatically add permissions * Support title assignment in consumption templates * Refactoring, filters to and, show sources on list Show sources on template list, update some translation strings Make filters and minor testing * Update strings * Only update django-multiselectfield * Basic docs, document some methods * Improve testing coverage, template multi-assignment merges
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
Proposed change
This PR adds "consumption templates" which allow users more control over consumed docs. Functionally, this allows things like automatically sharing new documents, different consume folders and other useful things.
In general, this could definitely be expanded upon in the future, I think.
TLDR:
Thoughts:
added
.TODO:
Fixes #2177
Fixes #4163
Fixes #3443
& others
Type of change
Checklist:
pre-commit
hooks, see documentation.