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
mgr/dashboard: Fix objects named default
are inaccessible
#20976
mgr/dashboard: Fix objects named default
are inaccessible
#20976
Conversation
src/pybind/mgr/dashboard/tools.py
Outdated
# $ curl 'http://localhost/api/cp_path/' | ||
# and | ||
# $ curl 'http://localhost/api/cp_path/default' | ||
# But we need to dinstinguish them. To fix this, we need |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/dinstinguish/distinguish/ (please also fix this in the changeset comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
78bacee
to
dce9616
Compare
jenkins retest this please |
@sebastian-philipp the
From the mgr log I got this traceback:
|
de1a90a
to
eb80aa9
Compare
@rjfd fixed the internal server error |
@sebastian-philipp please rebase this PR to resolve the conflicts |
1afd194
to
6b0b118
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you put the changes made to the perf_counters
controller in a separate commit?
6b0b118
to
d8af9ba
Compare
@rjfd: done |
@sebastian-philipp please rebase the PR on top of master |
The next commit will require that all controllers have a `@ApiController` decorator. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
These two calls to `default()` are identical: `vpath` and params` are both empty: $ curl 'http://localhost/api/cp_path/' and $ curl 'http://localhost/api/cp_path/default' But we need to dinstinguish them. To fix this, we need to add the missing `default` We now require that all exposed controllers have a @APIController decorator. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
d8af9ba
to
452992b
Compare
Rebased, cause of a conflict in |
These two calls to
default()
are identical:vpath
andparams
are both empty:and
But we need to distinguish them. To fix this, we need to add the missing
default
Also, I had to slightly refactor
PerfCounters
in order to have a reliable_cp_path_
property.Signed-off-by: Sebastian Wagner sebastian.wagner@suse.com