Skip to content

refactor: Inline quick start guide configure components#19100

Merged
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:refactor/inline_configure
Sep 5, 2024
Merged

refactor: Inline quick start guide configure components#19100
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:refactor/inline_configure

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

At the moment the quick start guide is split into many components making it harder to update it. This was done to support multiple operating systems via components composition. However we can use the same approach as in #19095 (a switch/case to handle the logic) instead.
That allows us to have a single component with all the guide, making it easier to update

@erezrokah erezrokah requested review from a team and marianogappa and removed request for a team September 5, 2024 16:01
}
}

## Configure Destination Plugin
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So instead of something like
image

Where the only difference between operating systems is the import for configure-sync-command, I inlined everything into a single component.

The logic to handle multiple operating systems is via the SyncCommand component switch case


You can run the sync by specifying the directory with the configuration files or each file individually

<SyncCommand os={props.os} />
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This will show the correct version of the sync command per OS

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Sep 5, 2024
@kodiakhq kodiakhq bot merged commit 8d1d404 into cloudquery:main Sep 5, 2024
@erezrokah erezrokah deleted the refactor/inline_configure branch September 5, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/website automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants