Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Comment annotations and doc generation #minor #350

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

eapolinario
Copy link
Contributor

@eapolinario eapolinario commented Dec 7, 2022

TL;DR

Comment annotations and generation of docs to aid in the migration to buf+monorepo

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Swagger annotations are commented out in order to unblock python protobuf stubs generated via buf. Note that we rely on grpc-gateway to leverage the annotations, but as part of the grpc-gateway v2 migration, the swagger annotations need to be migrated to openapiv2 (as described here).

Unfortunately moving all protobuf generation (across all languages) to buf will incur into too much risk and potentially some incompatibility problems (since admin is using the v1 of the grpc-gateway protoc plugin). In order to de-risk this project we'll take this piece-meal and only rely on buf for the python stubs.

Tracking Issue

flyteorg/flyte#3139

Follow-up issue

NA
OR
https://github.com/flyteorg/flyte/issues/

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Merging #350 (2b67608) into master (b4947af) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #350   +/-   ##
=======================================
  Coverage   73.12%   73.12%           
=======================================
  Files          18       18           
  Lines        1362     1362           
=======================================
  Hits          996      996           
  Misses        315      315           
  Partials       51       51           
Flag Coverage Δ
unittests 73.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@eapolinario eapolinario changed the title Comment annotations and doc generation Comment annotations and doc generation #minor Dec 7, 2022
@eapolinario eapolinario merged commit 305c51e into master Dec 7, 2022
@eapolinario eapolinario deleted the comment-annotations-and-doc-generation branch December 7, 2022 21:54
eapolinario added a commit that referenced this pull request Sep 8, 2023
* Comment swagger annotations in proto

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

* Regenerate proto stubs

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants