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
There is no way to determine the user ID when connecting through the API #5490
Comments
Note: A workaround is to iterate over |
Instead of changing |
@shubham-mahajan @wardi just pinging to see if PR #5504 is still WIP. |
@jqnatividad From my end PR is done, let's wait @wardi to review. |
Any updates on this one? The workaround I mentioned before does not anymore work with API tokens. A new workaround is to check whether "email" is set for a user in the user list. |
@paulmueller It is agreed in (#5504 (comment)) that we will not be using a separate method but will create a flag in the request for that. I will create a PR soon for that |
Currently, we cannot determine the user details of the user which is logged in without passing the id, so method is modified to fetch the details of the current user if the user is logged in.
This param is not needed anymore and may cause issue
@wardi I just updated from CKAN 2.9.4 to CKAN 2.9.5 and realized that #6338 did not get merged into the 2.9 branch. Is there any particular reason for that? I checked
The docs say that during a patch release, developers should cherry-pick commits which are labeled as "backports". How is this done? Or do I have to wait until 2.10 for this to arrive in production? http://docs.ckan.org/en/latest/contributing/release-process.html#preparing-patch-releases |
@paulmueller new features aren't backported in case they cause issues for current users. |
👍 Thank you for the clarification. |
Currently, we cannot determine the user details of the user which is logged in without passing the id, so method is modified to fetch the details of the current user if the user is logged in.
This param is not needed anymore and may cause issue
Currently, we cannot determine the user details of the user which is logged in without passing the id, so method is modified to fetch the details of the current user if the user is logged in. (cherry picked from commit 2e78748)
(cherry picked from commit 06f620f)
This param is not needed anymore and may cause issue (cherry picked from commit 11d707f)
CKAN version
2.8
Describe the bug
It is not possible to determine a users ID when connecting through the API. In my opinion, this should be the default behavior of
user_show
, but the documentation states that either theid
or theuser_obj
parameter must be given. I think it would be user-convenient to change this default behavior.Steps to reproduce
Connect via API using an API key and call
user_show
without arguments.Expected behavior
The information about the currently logged-in user is shown.
Actual behavior
The text was updated successfully, but these errors were encountered: