This update introduces a Plans schema to enhance user access control within METASPACE. Users can now be associated with specific plans, each of which can have customizable rules that apply to datasets, groups, projects, and users. These rules allow for granular control, such as limiting the number of downloads or other resource usage.
Additionally, this PR adds functionality to log API usage in the database, enabling better tracking and management of user activity. Also, the number of downloads was limited to 2 per day, both for web and API
Steps to run from scratch
1 - Run migrations
2 - Access postgres
3 - Create plans, plans rules and associate user to plan
Description
This update introduces a Plans schema to enhance user access control within METASPACE. Users can now be associated with specific plans, each of which can have customizable rules that apply to datasets, groups, projects, and users. These rules allow for granular control, such as limiting the number of downloads or other resource usage.
Additionally, this PR adds functionality to log API usage in the database, enabling better tracking and management of user activity. Also, the number of downloads was limited to 2 per day, both for web and API
Steps to run from scratch
1 - Run migrations 2 - Access postgres 3 - Create plans, plans rules and associate user to plan