A crazed software engineer from London
flying-unicorn's Introduction
flying-unicorn's People
flying-unicorn's Issues
Create basic endpoints for permissions
Create CRUD endpoints for permissions.
No special fields.
Add OIDC functionality
Allow login using a OIDC IDp (like auth0)
Use this to auth based on email address and pickup groups
Allow config for which claims to map to user values
Create basic endpoints for roles
Create CRUD endpoints for roles.
No special fields.
can't be a team lead and a member of a team
causes a 500 error
Change oauth client ids to use uuids rather than sequential numbers
Create AdditionalFields
Create the additional fields model so that it works as intended, and allows for the addition of any field to any entity.
Validation
Field validators should use the Laravel Validation Rules and be injected into the rules in the Store + Update requests.
Permissions
The ability to get / set any of these additional fields is based on the entity it is attached to, and the slug stored on the field definition is appended to the permissions for the entity.
For example, if we add a tito_id
field to users
, and ommit the slug, then the ability to set / get the field is based on the permissions:
[own.]users.index
[own.]users.store
[own.]users.show
[own.]users.update
[own.]users.destroy
However if the slug is stored (e.g. tito
) the permissions for getting / setting become:
[own.]users.index.tito
[own.]users.store.tito
[own.]users.show.tito
[own.]users.update.tito
[own.]users.destroy.tito
ERD
Below is a simplified version of the table(s) and their relations. There are additional fields on each table used for tracking who added/updated the field defintions + when.
+----------------+ +---------------------+ +-------------------+
|AdditionalField | |AdditionalFieldValue | |Entity (e.g. User) |
+----------------+ +---------------------+ +-------------------+
|id |<-----------+additional_field_id | +---->|id |
|key | |entity_id +----+ |name |
|type | |value | |email |
|entity | | | |password |
+>alidator | +---------------------+ | |
|permission_slug | +-------------------+
| |
+----------------+
ToDo
- Setup model
- Create trait for adding to other models
- Create controller
- index
- store
- show
- update
- destroy
- Validate additional fields on store/update requests
- Create/Update additional fields on store/update requests
Create basic endpoints for comments
Create CRUD endpoints for comments.
Note: user_id
field only available on store action. Not available for update action. This is to allow for annonymous comments.
Requires:
- Comments Policy
Create basic endpoints for "do not disturbs"
Create CRUD endpoints for do not disturbs.
Note: user_id
field only available to admins. Automatically sets to creating user if not given over API.
Permission: donotdisturbs.store.user_id
Create basic endpoints for tags
Create CRUD endpoints for tags.
No special fields.
Requires
- Tags Policy
Create basic endpoints for locations
Create CRUD endpoints for locations.
No special fields exist.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.