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

BO17 - Create a DAL function to add a Sponsorship level #182

Open
gregoriopalama opened this issue Apr 17, 2024 · 0 comments
Open

BO17 - Create a DAL function to add a Sponsorship level #182

gregoriopalama opened this issue Apr 17, 2024 · 0 comments
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this

Comments

@gregoriopalama
Copy link
Member

gregoriopalama commented Apr 17, 2024

Add a DAL function in the Sponsorship API.

The function should accept the informations about the sponsorship level:

  • name. This is required;
  • position: this will be checked. If there is an other sponsorship level with the same position, the other one will be updated and moved to the next position, and the same will be done for any other level with a colliding position. This field is optional. If not provided, the position will be set to the actual number of sponsorship levels in the db (index must start from 0).

The response will be an errore if something goes wrong. Otherwise, the function will provide the inserted sponsorship level object, including the ID of the document in the DB.

@gregoriopalama gregoriopalama converted this from a draft issue Apr 17, 2024
@gregoriopalama gregoriopalama moved this from Backlog to Ready in Hedwig Apr 17, 2024
@gregoriopalama gregoriopalama added good first issue Good for newcomers help wanted Extra attention is needed task This is a Task. Contributors can work on this and removed good first issue Good for newcomers labels Apr 17, 2024
@gregoriopalama gregoriopalama changed the title BO17 - Create an endpoint to add a Sponsorship level BO17 - Create a DAL function to add a Sponsorship level Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this
Projects
Status: Ready
Development

No branches or pull requests

1 participant