Closed shaburov closed 3 months ago
@shaburov hello. I wouldn't say I like approaches that add business logic to a database level. We have some legacy. However, we are trying to avoid this for new features, and I want to develop ReportPortal as a vendor-agnostic product. Moreover, there are performance issues with using triggers in PostgreSQL.
@pbortnik, @irynakozak2, can you review this proposal? We may have differing opinions on it.
@shaburov, @raikbitters If we want to have this functionality, it is better to implement it in service-api. Using triggers is not recommended for such cases.
So many users are created that the trigger affects the performance? Why do you have such a monstrous staff turnover?
AFTER INSERT ON users
Don't talk nonsense my friends.
@shaburov check my first point, please. Performance issue isn't essential reason.
In order to simplify adding users to “public” projects, you can add an SQL trigger, which will trigger when an entry is added to the users table and provide access to the listed public projects. This is especially convenient if you have SAML authentication enabled.
This issue is for informational purposes only.