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

Extract pipeline for documentation set #3485

Merged
merged 4 commits into from
Mar 22, 2023

Conversation

mvriel
Copy link
Member

@mvriel mvriel commented Mar 20, 2023

With this change, I have extracted the parsing of each API set into a
sub-pipeline. This means that we can now parse multiple sets of API
Documentation instead of just the first.

However, it doesn't work quite yet. As the files are still added onto
the ProjectDescriptor. This change merely changes the process, but
shouldn't affect the application as long as the guard that only 1 API
Set may be present is in place.

In a subsequent change, we will be modifying the parsing logic itself to
work more with the Documentation Set descriptors instead of the
ProjectDescriptor.

With this, I updated the pipeline documentation to reflect the new
situation and I was able to drop the Parser Payload as it had been
replaced by the ApiSetPayload. I also found that Guides type-hinted
the parser payload but didn't really use it, so I have simplified that
part of the code and subsequently was able to remove the Parser
Payload, including the pipeline stage that maps it, entirely.

With this change, I have extracted the parsing of each API set into a
sub-pipeline. This means that we can now parse multiple sets of API
Documentation instead of just the first.

However, it doesn't work quite yet. As the files are still added onto
the ProjectDescriptor. This change merely changes the process, but
shouldn't affect the application as long as the guard that only 1 API
Set may be present is in place.

In a subsequent change, we will be modifying the parsing logic itself to
work more with the Documentation Set descriptors instead of the
ProjectDescriptor
@mvriel
Copy link
Member Author

mvriel commented Mar 20, 2023

I still need to update tests and what comes out of static analysis

While reviewing, I noticed that a) I had added a method to the
ApiSetDescriptor that I really do not need anymore, and b) the Parser
Payload is no longer really used.

I have now replaced the Parser Payload with its parent (the normal
Payload) and found that the stage to transform the regular Payload to
the Parser payload was unnecessary; so I cut it out to simplify the
process.
@mvriel mvriel marked this pull request as ready for review March 21, 2023 05:41
@jaapio jaapio merged commit 2597b8a into master Mar 22, 2023
@jaapio jaapio deleted the extract-pipeline-for-documentation-set branch March 22, 2023 07:29
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.

None yet

2 participants