Coder Social home page Coder Social logo

haplo-plugins's People

Contributors

bensummers avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

nagyistge thomas-

haplo-plugins's Issues

Does a service to invalidate the roles cache need to exist for "add_roles_to_user" service?

O.serviceMaybe("haplo:user_roles_permissions:add_roles_to_user", userRoles, user, userRef);

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.

Descriptive object labelling: created object doesn't take parents labels on create, but does after edit/save

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:

  1. Create object of type
  2. Create object of same type, use object created above as A.Parent
  3. New object will have labels: T.TestOne and itself but not the Parent object created in 1)
  4. Edit object, Save without changes, parent will now be included

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.