Skip to content

[improve][doc] Update swagger for 2.10.2 - #18143

Merged
michaeljmarshall merged 1 commit into
apache:masterfrom
Jason918:fix/swagger-file-2.10.2
Oct 24, 2022
Merged

michaeljmarshall merged 1 commit into
apache:masterfrom
Jason918:fix/swagger-file-2.10.2

Conversation

@Jason918

@Jason918 Jason918 commented Oct 21, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

Update swagger for 2.10.2

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions

Copy link
Copy Markdown

@Jason918 Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@github-actions github-actions Bot added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc-label-missing labels Oct 21, 2022
@codelipenghui

Copy link
Copy Markdown
Contributor

@Anonymitaet Will the swagger files move the pulsar-site repo?

@Anonymitaet

Anonymitaet commented Oct 24, 2022 •

Copy link
Copy Markdown
Member

@Anonymitaet Will the swagger files move the pulsar-site repo?

@urfreespace @tisonkun can you take a look at the following questions? Thank you!

Q1.

Now the swagger files in pulsar are synced to pulsar-site, can we remove swagger files in pulsar and only keep them in pulsar-site? (Does the REST API doc build process rely on the files in pulsar and must be completed in pulsar?)

Q2.

We use swagger for generating REST API docs only.

Since we use one doc set now (2.10.x for 2.10.0, 2.10.1, 2.10.2, ...), does this mean we just need to generate REST API doc for 2.10.x only instead of generating for 2.10.0, 2.10.1, 2.10.2, ...?

If yes, the release process needs to be updated (now release managers generate swagger files for each release), that is, swagger files should be only generated for major releases (2.10.x, 2.11.x, 2.12.x, ...) instead of minor releases (2.10.1, 2.10.2, ...).

cc @momo-jun @labuladong

@michaeljmarshall

Copy link
Copy Markdown
Member

@Anonymitaet - We need to generate the swagger docs for each released version of Apache Pulsar. In my opinion, it is not sufficient to generate them frequently based on the current state of branch-2.x because the swagger docs are used to generate clients, and we want to provide stable versions of these docs.

We should move the swagger files to the pulsar-site repo because they are generated. Note that we already do this in this part of the website's generated doc files here: https://pulsar.apache.org/api/.

@michaeljmarshall michaeljmarshall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. I don't think we should hold up @Jason918's work as release manager, so I am going to merge this PR.

@michaeljmarshall
michaeljmarshall merged commit 31dad38 into apache:master Oct 24, 2022
@Jason918
Jason918 deleted the fix/swagger-file-2.10.2 branch October 25, 2022 01:38
@tisonkun

Copy link
Copy Markdown
Member

@michaeljmarshall agree. You may notice #18014 for a similar proposal. I don't read through the logic about swagger files yet. I'll appreciate it if you can share your knowledge about this sync and build process, especially for the API/generated files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants