-
Notifications
You must be signed in to change notification settings - Fork 67
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
Reorganize documentation for the "how-tos" section #614
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Accessing the Administration Panel | ||
|
||
The following detailing the administration panel setup, how to add users and its interface and usage. | ||
|
||
## Prerequisites | ||
|
||
To access the Administration Panel, users must be logged in with an administrator role. The admin role is key to performing administrative tasks and is assigned from the instance's owners. | ||
|
||
## Setup | ||
|
||
Setting up access to the Administration Panel involves configuring the instance, creating roles, allowing these roles, and assigning them to users by instance's owners. | ||
|
||
### Configuration | ||
|
||
Firstly, ensure that the Administration Panel is enabled in your instance by adding the following configuration in `invendio.cfg`: | ||
|
||
```python | ||
USERS_RESOURCES_ADMINISTRATION_ENABLED = True | ||
``` | ||
|
||
### Creating and Allowing Roles | ||
|
||
Execute the following commands to create the necessary roles and permissions: | ||
|
||
```shell | ||
# Create and allow the roles once (usually done in the instance setup) | ||
invenio roles create administration-moderation | ||
invenio roles create administration | ||
|
||
invenio access allow administration-moderation role administration-moderation | ||
invenio access allow administration-access role administration | ||
invenio access allow superuser-access role administration | ||
``` | ||
|
||
### Assigning Roles to Users | ||
|
||
To grant a user access to the Administration Panel, assign the administration role: | ||
|
||
```shell | ||
# allow the user to access the administration panel | ||
invenio roles add user@demo.org administration | ||
``` | ||
|
||
You can assign the moderation role to a admin if you want to allow access the users moderation panel: | ||
|
||
```shell | ||
# allow the user to access the moderation tab | ||
invenio roles add user@demo.org administration-moderation | ||
``` | ||
|
||
replace `user@demo.org` with the email of the user you want to give access to the administration panel. | ||
|
||
## More Information | ||
|
||
You can find more information about the Administration Panel in the following sections: | ||
|
||
- [Architecture](../../develop/topics/administration_panel.md/#administration-panel) | ||
|
||
- [References](../../reference/administration_reference.md/#administration-reference-guide) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Administration Interface | ||
|
||
The administration interface is a powerful tool that allows you to manage your InvenioRDM instance. It is accessible to users with the role of administrator. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# How-to Guides | ||
|
||
Step-by-step guides on how to perform certain tasks: | ||
|
||
## User Guides | ||
|
||
Check out the [User Guides](https://help.zenodo.org/docs/) section on Zenodo.org. | ||
|
||
## Instance Administrators | ||
|
||
- [Accessing the Administration Panel](administration/index.md) | ||
- [Moderate users](administration/interface.md) | ||
|
||
## Development and Customization | ||
|
||
- [Create a new custom field](custom_fields.md) | ||
- [Create custom code and views](custom_code.md) | ||
- [Add JavaScript](add_javascript.md) | ||
- [Override UI React components](override_components.md) | ||
- [Create search terms mappings](search_terms_migration.md) | ||
- [Create a database migration](alembic.md) | ||
- [Fix a vulnerability](security-fix.md) | ||
- [Test emails locally](dev_email.md) | ||
- [Migrate legacy routes](route_migration.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🤔 On L111 there is the "How-to guides" section already. On L110 there is the "Topic guides/Administration Panel". So those could go in either of them. There is something to be said about future overall doc organization though because of the span of things we want to cover and how they are not necessarily apparent to someone coming to the docs for answers.
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.
Exactly, you are right. The current guides, though useful, tend to fly under the radar for newcomers. My aim is to make it more visible to replicate Zenodo's approach while adding what Slint has mentioned on Discord,
Do you think it's feasible to move all guides up to consolidate all guides into this new section location, and maybe categorize them under regular users and administrators/developers, to enhance visibility and accessibility,
Otherwise, we keep the old section and nest the new recipes under it.
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.
👍 I think that makes sense. @kpsherva suggested something in a similar vein here: #543 where the target audience is a bigger driver in the organization of the docs. I am not settled yet on what should be the top-level split: by features first and then audience or by audience first (which is sort of what we have but in verb form). Some experimentation here to be done for sure.