haplo-org / haplo-plugins Goto Github PK
View Code? Open in Web Editor NEWUseful plugins for Haplo applications
License: Other
Useful plugins for Haplo applications
License: Other
Above service allows other plugins to add roles as a last resort/if it can't fit the model - however any plugin adding roles this way doesn't have a way to flush the cache, so as far as I can see you may make changes to data that causes a cached role (added by add_roles_to_user service) to be removed, but the permissions/role will persist until something else triggers a cache flush?
Think implementing an invalidation service available for other plugins to call solves this.
Not sure if this is a known thing or not, but proves to be a little bit of an issue when setting up new selfLabelled child objects.
I've provided some test schema and code for reproduction, but worth noting I had the same issue/outcome using Research Institutes in haplo_research_manager (ie, adding a department to a faculty)
type test:type:test-one as TestOne
title: Test one
search-name: test one
attribute dc:attribute:title [sort=1000]
attribute std:attribute:parent [sort=1100]
attribute std:attribute:notes [sort=1600]
render-type book
render-icon: E210,1,f
render-category 0
create-position common
P.implementService("haplo:descriptive_object_labelling:setup", function(type) {
type(T.TestOne, {
selfLabelling: true
});
});
Repro:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.