Skip to content

docs: add username to changeable attributes (DSP-1895) - #1904

Merged
irinaschubert merged 3 commits into
mainfrom
wip/DSP-1895-fix-documentation
Sep 13, 2021
Merged

irinaschubert merged 3 commits into
mainfrom
wip/DSP-1895-fix-documentation

Conversation

@irinaschubert

Copy link
Copy Markdown

resolves DSP-1895

@irinaschubert irinaschubert self-assigned this Sep 8, 2021
@irinaschubert
irinaschubert marked this pull request as ready for review September 8, 2021 15:39
status: Option[Boolean] = None,
systemAdmin: Option[Boolean] = None) {
* Represents an API request payload that asks the Knora API server to update an existing user. Information that can
* be changed include the user's username, email, given name, family name, language, password, user status, and system admin

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is the only change I've done in this file. The rest is reformatting.

Comment on lines +654 to 656
val iriEquals = identifier.toIriOption.contains(id)
val emailEquals = identifier.toEmailOption.contains(email)
val usernameEquals = identifier.toUsernameOption.contains(username)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Although most of re-formatting done in the file makes sense, the one marked above I don't personally like and it's kind of the same "alignment idea" to arguments formatted here before. I opt to keep fields as it was before :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK, I suggest that we do the reformatting in a separate PR and then reformat everything (we already tried that but then the tests didn't run through - so we need to be careful with this). Besides, I don't know how to re-do this now... (as it was done automatically by saving the file)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's matter of the formatter configuration. It should be rather easy to revert unwanted things.

@irinaschubert
irinaschubert requested a review from mpro7 September 13, 2021 14:32

@mpro7 mpro7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As we agreed, we need to agree on the formatting rules etc. until then we should avoid reformat the code, but in this single file we can have it as a reference, which will be adjusted soon.

@irinaschubert
irinaschubert merged commit 719cd0d into main Sep 13, 2021
@irinaschubert
irinaschubert deleted the wip/DSP-1895-fix-documentation branch September 13, 2021 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants