Giter Site home page Giter Site logo

cumuluscore-plugin's People

Contributors

adrion avatar djudzinski avatar drumbeldore avatar dzapek avatar roulendz avatar tomaszstrojny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cumuluscore-plugin's Issues

installation wont work

Trying to install through October CMS plugins marketplace, but it won't install on my OC v446.
any idea what is happening, please?
There is no error. I go through the standard updates plugins form the backend settings page.

Feature: cumuluspage tag

it would be cool to have a twig tag cumuluspage to create link directly to cumuluspage instead of doing it with |page{'cluster': cluster.username}
or did I miss it?

Issue with choose-cluster logic

I register a user with clustername=demo and login.
then I logout
then I register a new user with clustername=voilaah
then this user is redirected to the URL /demo/settings (as it should be /voilaah/dashboard) from previous cluster demo instead of voilaah from the choose-cluster page that implements the component

[clustersList]
clusterDashboardPage = "app/dashboard"

User relation v3 migration

Hi,
I'm migrating to v3 and see a huge regression when replacing ClusterRepo to Cluster model.
$clusterRepository->getClustersUsers([$clusterUniq]); to $cluster->users;

The User relation stated a long time ago was and still not correct.

public $hasMany = [
        'users' => [
            UserModel::class,
            'table' => 'users',
            'otherKey' => 'user_id'
        ], [...]

the reverse relation in Plugin.php is ok

UserModel::extend(function ($model) {
    $model->belongsToMany['clusters'] = [
        Cluster::class,
        'table' => 'initbiz_cumuluscore_cluster_user',
        'order' => 'name',
        'key'      => 'user_id',
        'otherKey' => 'cluster_id'
    ];
});

We should change the user relation in Cluster model to :

public $belongsToMany = [
        'users' => [
            UserModel::class,
            'table' => 'initbiz_cumuluscore_cluster_user',
            'order' => 'name',
            'key'      => 'cluster_id',
            'otherKey' => 'user_id'
        ]
    ];

I'll make a PR,
it's strange it doesn't break something for you.

[Question] - OctoberCMS to SAAS platform

Hello !

I'm actually making specifications for a project for a customer of mine.

I saw your plugin and I think that could help me bootstrap my project.

I'll have 4 types of profiles on the platform :

  • Customers
  • Companies
  • Companies manager
  • Super administrator

Goal is that each company has its own dashboard and should be able from here to create "one page" to present their activity on the platform customers will be able to browse.

Companies manager depending on the company location will have a separate dashboard to have an overview on some of the companies.

Super administrator will have an overview on everything.

I was wondering if such a plugin could help me reach that goal ? As far as I understood yes.

If this is the case, I can also help improving it.
Would love to discuss with you to have your point of view.

Php Error

my setup is an index.htm

title = "Homepage"
url = "/"
layout = "default"
is_hidden = 0

[session]
security = "all"

[account]
redirect = "system/choose-cluster"
paramCode = "code"
forceSecure = 0
==

{% component 'account' %}

and I receive this error:

Call to a member function canEnterFeature() on null
/Users/christophevidal/Sites/oc-dronet/plugins/initbiz/cumuluscore/classes/MenuManager.php line 37

SoftDelete - Slug generation issue

Related to octobercms/october#4192

We may recover Validation rules on Cluster model, at least for slug and name properties.
We should prevent slug duplication when the first one is soft deleted.

I'll try to recover validation rule and make some tests locally

Compatibility issues with OctoberCMS v2.1.0

Hi,

I receive the following error message when I add CumulusGuard component to my CMS page:

Trying to get property 'slug' of non-object
~\plugins\initbiz\cumuluscore\eventhandlers\RainlabUserHandler.php line 86

return $model->clusters()->whereSlug($cluster->slug)->first() ? true : false;

Also when the user is added only to one cluster and I visit a page that has ClusterList component added, then I receive "ERR_TOO_MANY_REDIRECTS" error message on the page.

Could you please help me what could be the problem?
Am I doing something wrong or the plugin is not compatible with the latest build of OctoberCMS?

Versions that I use:

  • OctoberCMS: 2.1.0
  • Rainlab.User: 1.5.4
  • CumulusCore: 3.4.3

Thanks in advance for your help!

Backend plugin conflicts

When using plugins that extends User Backend panel Cumulus render it unaccessible.
(Only by using direct url)

Example :

  • Install CumulusCore.
  • Install kurtjensen-passage

I don't find where you define Menu items from User panel but you override it instead of extending it like others
Extended menu example :

Event::listen('backend.menu.extendItems', function ($manager) {
	$manager->addSideMenuItems('RainLab.User', 'user', [
		'usergroups' => [
		'label' => 'rainlab.user::lang.groups.all_groups',
		'icon' => 'icon-group',
		'code' => 'u_groups',
		'owner' => 'RainLab.User',
		'url' => Backend::url('rainlab/user/usergroups'),
	],
	'passage_keys' => [
		'label' => 'kurtjensen.passage::lang.plugin.backend_menu',
		'icon' => 'icon-key',
		'order' => 1001,
		'code' => 'passage',
		'owner' => 'RainLab.User',
		'permissions' => ['kurtjensen.passage.*'],
		'url' => Backend::url('kurtjensen/passage/keys'),
	],
	'variance' => [
		'label' => 'kurtjensen.passage::lang.plugin.backend_variance',
		'icon' => 'icon-key',
		'order' => 1002,
		'code' => 'passage',
		'owner' => 'RainLab.User',
		'permissions' => ['kurtjensen.passage.*'],
		'url' => Backend::url('kurtjensen/passage/variances'),
	],]);
});

User Registration

the config is as follows:
auto assign user to a cluster, created by the variable clustername
cluster auto assign to a plan, trough the variable plan

and I received this error, no trace log in system.log

image

Feat Request : Roles

What about roles for users assigned to Cluster ?

it could be a nice way to handle another permission level on modules ;

Use case example :

  • user1 assigned to role1 should have access to module1 open for every roles
  • user2 assigned to role2 should have access to module2 open only for role2
  • user1 assigned to role1 shouldn't have access to module2 open only for role2

UserGroup is insufficient, a user cannot have different groups on different clusters.

V2 - legacy branch request

Hi,
My project is using oc-bootstraper and install listed plugins.
Since I can't migrate right now to v3 my project just broke...

As oc-boostraper allow custom branch fetch can you push a v2 legacy branch ?
I would prefer this over making a fork. ๐Ÿ˜„

Thanks !

Breaking change on minor update

As user may use automatic deployments with oc-boostraper please avoid minor version bump for breaking change.

3 breaking change in few updates is a lot. It becomes hard to maintain your plugin in a website. ๐Ÿ˜•

Just a notice, you can close it as you read it ๐Ÿ˜„
Many thanks for your work ๐Ÿ‘

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.