Skip to content

Commit 41a4cfc

Browse files
petrus-vyankinmax
authored andcommitted
[FIX] freeze graphql_server
1 parent 3d00b7e commit 41a4cfc

3 files changed

Lines changed: 15 additions & 17 deletions

File tree

fastapi_auth_api_key/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Fastapi Auth API Key
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
20-
:target: https://github.com/OCA/rest-framework/tree/17.0/fastapi_auth_api_key
20+
:target: https://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_api_key
2121
:alt: OCA/rest-framework
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/rest-framework-17-0/rest-framework-17-0-fastapi_auth_api_key
23+
:target: https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-fastapi_auth_api_key
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -80,7 +80,7 @@ Bug Tracker
8080
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
8181
In case of trouble, please check there if your issue has already been reported.
8282
If you spotted it first, help us to smash it by providing a detailed and welcomed
83-
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_api_key%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
83+
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_api_key%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8484

8585
Do not contact contributors directly about support or help with technical issues.
8686

@@ -125,6 +125,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
125125

126126
|maintainer-mmequignon|
127127

128-
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/17.0/fastapi_auth_api_key>`_ project on GitHub.
128+
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_api_key>`_ project on GitHub.
129129

130130
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

fastapi_auth_api_key/dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ def authenticated_auth_api_key(
5454

5555

5656
def authenticated_partner_by_api_key(
57-
auth_api_key: Annotated[AuthApiKey, Depends(authenticated_auth_api_key)]
57+
auth_api_key: Annotated[AuthApiKey, Depends(authenticated_auth_api_key)],
5858
) -> Partner:
5959
return auth_api_key.user_id.partner_id
6060

6161

6262
def authenticated_env_by_auth_api_key(
63-
auth_api_key: Annotated[AuthApiKey, Depends(authenticated_auth_api_key)]
63+
auth_api_key: Annotated[AuthApiKey, Depends(authenticated_auth_api_key)],
6464
) -> Environment:
6565
# set api key id in context
6666
return auth_api_key.with_user(auth_api_key.user_id).env

fastapi_auth_api_key/views/fastapi_endpoint.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
<!-- Copyright 2024 Camptocamp SA
33
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
44
<odoo>
5-
65
<record id="fastapi_endpoint_form_view" model="ir.ui.view">
7-
<field name="name">fastapi.endpoint.form.inherit</field>
8-
<field name="model">fastapi.endpoint</field>
9-
<field name="inherit_id" ref="fastapi.fastapi_endpoint_form_view" />
10-
<field name="arch" type="xml">
11-
<group name="resoures" position="inside">
12-
<field name="auth_api_key_group_id" />
13-
</group>
14-
</field>
6+
<field name="name">fastapi.endpoint.form.inherit</field>
7+
<field name="model">fastapi.endpoint</field>
8+
<field name="inherit_id" ref="fastapi.fastapi_endpoint_form_view" />
9+
<field name="arch" type="xml">
10+
<group name="resoures" position="inside">
11+
<field name="auth_api_key_group_id" />
12+
</group>
13+
</field>
1514
</record>
16-
1715
</odoo>

0 commit comments

Comments
 (0)