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

Add all endpoint for teammembers #76

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

Add all endpoint for teammembers #76

wants to merge 2 commits into from

Conversation

Zhylkaaa
Copy link
Contributor

Closes #19 #20 #21 #22 #28

@quercusilvam quercusilvam changed the base branch from main to dev March 18, 2022 13:11


def handle_get_all_teammembers(request):
Session = get_db_session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

except KeyError:
return flask.Response("No teammember id supplied!", status=400)

Session = get_db_session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

except KeyError:
return flask.Response("No teammember id supplied!", status=400)

Session = get_db_session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

if not result.success:
return flask.Response(response=f"Failed: {','.join(result.errors)}", status=405)

Session = get_db_session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above

if result.warnings:
print(result.warnings)

Session = get_db_session()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use get_db_session(pool_global). New version introduced in https://github.com/KoalicjaOtwartyKrakow/backend/issues/80

@mlazowik
Copy link
Contributor

To be clear: teammates are not required for the first release, so let's skip this for now

@quercusilvam quercusilvam marked this pull request as draft March 20, 2022 07:48
@quercusilvam
Copy link
Contributor

To be clear: teammates are not required for the first release, so let's skip this for now
I changed this PR to draft so people will know it's not for now.

@jakw0j
Copy link
Contributor

jakw0j commented Apr 2, 2022

@mlazowik is it to be closed?

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

Successfully merging this pull request may close these issues.

Create POST /teammember endpoint
4 participants