-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Add an Organization entity type with a Farm bundle #849
Draft
mstenta
wants to merge
29
commits into
farmOS:3.x
Choose a base branch
from
mstenta:3.x-organization
base: 3.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a631df7
Initial organization entity type module.
mstenta 7abe59b
Fix PHPCodesniffer errors.
mstenta eece848
Delete migrate source plugin.
mstenta b3f1e63
Remove unnecessary system module version constraints.
mstenta 0aefdb7
Enable bundle plugins for the Organization entity type.
mstenta 23cf780
Enforce entity reference integrity on organization reference fields.
mstenta 3add9d7
Add base fields to organization entities: data, file, image, notes.
mstenta 0a203e0
Initial Farm organization type.
mstenta 6038333
Add support for organization reference fields in farm_field.factory.
mstenta a9a1a94
Add a farm reference field to assets and logs.
mstenta 7bc9a87
Document organizations in the data model.
mstenta 7552f4e
Document where to find example bundle declarations in farmOS.
mstenta 70a3387
Add a "Users" base field to Organizations.
mstenta bc0bcd3
Remove Farm reference from logs.
mstenta ddbd530
Put farm reference field in Meta sidebar fieldset.
mstenta 484161e
Put farm field display in second region.
mstenta 9e51c57
Move organization primary tasks to secondary tasks and disable Drupal…
mstenta aeb9e97
Enable Gin content form on organization entities.
mstenta 24e9a22
Add a View of Organizations under Setup menu.
mstenta 53d0b66
Add organization status filter
paul121 031aa8f
Sort by organization name
paul121 a518bc1
Add organization action link
paul121 2827a9a
Add asset tab to farm organization page
paul121 342c0d4
Use FarmEntityViewsData to support additional field types in views
paul121 29bee45
Set owner of cloned organizations
paul121 a2f52c0
Remove roles from Views remember_roles config.
mstenta e582ba9
Add a description to the Organizations menu item.
mstenta 8ff93b1
Change farm from a bundle field to a base field.
mstenta f669dcb
Add support for organization entity type in farm_role module.
mstenta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add a "Users" base field to Organizations.
- Loading branch information
commit 70a3387c68ab540de9de5df4975741dc4dedec15
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe we could remove the user field to leverage it from a Group integration instead?
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.
This is a good question @pcambra! I've been thinking about it ever since it came up in conversation.
(For readers who may not be familiar with recent conversations, this is referring to ideas for a potential contrib farmOS module that uses the data types provided by this PR + the Drupal Group module to enable a "multi-tenant" farmOS instance with access control between groups/farms).
In the context of the multi-tenant farmOS module, there needs to be a way to link users to Groups (farms), so that access control can be applied to them. The Group module provides its own way of doing this.
However, as of right now the plan is for that to be a contrib module which extends core farmOS data model. So perhaps the question right now is: are there use-cases for linking users to farms outside of the multi-tentant access controlled context? If so, then we may need a user relationship in core as well.
In reviewing the forum discussion, I found this, which I had forgotten about:
Since there is a use-case now (multi-tenant farmOS), perhaps we should discuss it together again. If there is any possibility that we will want a user relationship in the core data model, then we should add that now and the multi-tenant module should work around it IMO. Otherwise we may end up with multiple different implementations for the same thing.
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 copied most of this to the forum topic: https://farmos.discourse.group/t/organization-level-data/2003/10
Let's discuss over there (and in a future dev call).