Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

added field apiKey to the User bean#99

Merged
alexeyOnGitHub merged 1 commit intotaskadapter:mastertaskadapter/redmine-java-api:masterfrom
ciasnmic:masterciasnmic/redmine-java-api:masterCopy head branch name to clipboard
Nov 5, 2013
Merged

added field apiKey to the User bean#99
alexeyOnGitHub merged 1 commit intotaskadapter:mastertaskadapter/redmine-java-api:masterfrom
ciasnmic:masterciasnmic/redmine-java-api:masterCopy head branch name to clipboard

Conversation

@ciasnmic
Copy link
Contributor

added ability to read user API access key (based on issue #79)

@ghost ghost assigned alexeyOnGitHub Oct 21, 2013
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is for parsing JSon strings to User objects only. what about saving users to Redmine server?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api_key property is read-only, changed value send to server is ignored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then we should change the javadoc from

The property is read-only for new users.
to
The value set by this method is ignored by the server. this method is for serialization only.

also, need to mark it as deprecated.

@alexeyOnGitHub
Copy link
Member

need to add a test verifying that API key is not empty or something. or (better yet) - compare it with the API key we used to retrieve the admin user (we know which API key we use).

@alexeyOnGitHub
Copy link
Member

I'm done with the review for now.

@alexeyOnGitHub
Copy link
Member

@ciasnmic , can you please add a test for this change?

alexeyOnGitHub added a commit that referenced this pull request Nov 5, 2013
added field apiKey to the User bean
@alexeyOnGitHub alexeyOnGitHub merged commit 80b61fe into taskadapter:master Nov 5, 2013
alexeyOnGitHub added a commit that referenced this pull request Nov 5, 2013
mark setApiKey() as deprecated to indicate that it should not be used by the client code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.