Skip to content
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

Dashboards are all being published to bucket 0 (anonymous) #166

Open
rickmcgeer opened this issue Mar 18, 2023 · 1 comment
Open

Dashboards are all being published to bucket 0 (anonymous) #166

rickmcgeer opened this issue Mar 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rickmcgeer
Copy link
Contributor

The user name is never stored, so all dashboards are being published by anonymous.
The error is in

$world.execCommand("open browser", {moduleName: "studio/helpers.cp.js", packageName: "galyleo-dashboard", codeEntity: [{"name":"PublisherModel","type":"class-decl"},{"name":"init","type":"class-instance-method"}]});

userName is being passed to init but it is never stored, and so when publishDashboard looks for it later it isn't there
The fix is to add the line

this.userName = userName

to init, under the guard that userName is not null.

@rickmcgeer rickmcgeer added the bug Something isn't working label Mar 18, 2023
@rickmcgeer rickmcgeer self-assigned this Mar 18, 2023
@rickmcgeer
Copy link
Contributor Author

Change has been made but not yet published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant