Skip to content
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

Support active/inactive functionality of supply/resource item #18

Open
sanak opened this issue May 9, 2024 · 2 comments
Open

Support active/inactive functionality of supply/resource item #18

sanak opened this issue May 9, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sanak
Copy link
Member

sanak commented May 9, 2024

Problem
Related with #17, there seems to be use case that filtering out some supply/resource items is preferable when adding supply/resource item in issue edit view.
Resource item has end date and it is possible to filter out ended items, but that is not so straight forward.

Improvement
Support lock/unlock functionality in supply/resource item like Redmine core's user model.

Alternatives
About the additional attribute name, either of the followings can be used:

  • status (integer): Redmine core User/Project models
    • User: STATUS_ANONYMOUS: 0, STATUS_ACTIVE: 1, STATUS_REGISTERED: 2, STATUS_LOCKED: 3
    • Project: STATUS_ACTIVE: 1, STATUS_CLOSED: 5, STATUS_ARCHIVED: 9
  • active (boolean): Redmine core Enumeration and CustomFieldEnumeration (used as Key/value list custom field type, checkbox) models
    • Japanese translation is 有効
  • locked (boolean): Redmine core Message model (used as Forum post checkbox)
@sanak sanak added the enhancement New feature or request label May 9, 2024
@sanak sanak self-assigned this May 9, 2024
@sanak
Copy link
Member Author

sanak commented May 16, 2024

lock/unclock words may be too much for just filtering out some supply/resource items, so I will use active/inactive for this issue.

@sanak sanak changed the title Support lock/unlock functionality of supply/resource item Support active/inactive functionality of supply/resource item May 16, 2024
@sanak
Copy link
Member Author

sanak commented May 22, 2024

Well, this changes cause too long supply/resource items list in /projects/{project identifier}/(asset|human)_resource_items views.
Probably, supporting filter by status function like Redmine core /users and /admin/projects views will be necessary, although supporting sort order by position logic will become quite complex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant