Skip to content

Conversation

SpliiT
Copy link
Member

@SpliiT SpliiT commented Oct 7, 2025

No description provided.

from opengeodeweb_microservice.database.connection import get_session
from opengeodeweb_back.utils_functions import save_all_viewables_and_return_info

routes = flask.Blueprint("create", __name__, url_prefix="/opengeodeweb_back/create")
Copy link
Member

Choose a reason for hiding this comment

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

@JulienChampagnol faut-il inclure opengeodeweb_back ici ou dans le le dossier parent ?

@SpliiT SpliiT requested a review from BotellaA October 9, 2025 08:56
schemas = os.path.join(os.path.dirname(__file__), "schemas")

# --- Type definitions for request validation ---
class Point(TypedDict):
Copy link
Member

Choose a reason for hiding this comment

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

@MaxNumerique que penses-tu de ca ? par rapport a ce que tu as fait avec les RPC ?

Copy link
Contributor

Choose a reason for hiding this comment

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

C'est bien parce que beaucoup plus clair en effet, mais je crois que l'utilisation de cast() donne juste l'nformation à mypy que c'est bien typé ici, mais ne fais pas de vérification réellement.
Mais comme on valide avec les schémas juste avant c'est bon aussi dans l'idée.

L'utilisation des variables pour déclarer les types comme je l'ai fait dans utils_functions de ma PR a aussi des inconvénients parce que trop rigide comparé à ce qu'à fait Tao, mais ça vérifie bien le type également

builder.set_edge_vertex(opengeode.EdgeVertex(edge_id, 0), vertex_indices[i])
builder.set_edge_vertex(
opengeode.EdgeVertex(edge_id, 1), vertex_indices[next_i]
try:
Copy link
Member

Choose a reason for hiding this comment

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

je ne sais pas si on besoin de ce try/catch, il y a une gestion d'erreur globale non ?

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.

3 participants