Skip to content

added field apiKey to the User bean - #99

Merged
alexeyOnGitHub merged 1 commit into
taskadapter:masterfrom
ciasnmic:master
Nov 5, 2013
Merged

alexeyOnGitHub merged 1 commit into
taskadapter:masterfrom
ciasnmic:master

Conversation

@ciasnmic

Copy link
Copy Markdown
Contributor

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

@ghost ghost assigned alexeyOnGitHub Oct 21, 2013

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

I'm done with the review for now.

@alexeyOnGitHub

Copy link
Copy Markdown
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