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

fix: preview server hot reload #673

Merged
merged 1 commit into from
May 10, 2022

Conversation

BohdanPetryshyn
Copy link
Contributor

What/Why/How?

This PR fixes preview server hot reloads for the openapi-cli package global installation.

As @nbourguig has pointed out, the issue was introduced with #347. The check only allowed files from the CWD to be served by the preview server while the scripts needed for hot reload were in the global installation directory. Now the check only applies to arbitrary files.

Reference

closes #538

Check yourself

  • Code is linted
  • Tested with redoc/reference-docs/workflows
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

@RomanHotsiy RomanHotsiy requested a review from tatomyr May 6, 2022 09:01
@minalabib223

This comment was marked as spam.

@minalabib223

This comment was marked as spam.

@minalabib223

This comment was marked as spam.

@minalabib223

This comment was marked as spam.

@BohdanPetryshyn BohdanPetryshyn force-pushed the fix/preview-server-hot-reload branch from 69627f9 to b8ca5a9 Compare May 10, 2022 14:35
@adamaltman
Copy link
Member

It would be good for this to be included in this release: #681

@adamaltman adamaltman mentioned this pull request May 10, 2022
5 tasks
@BohdanPetryshyn
Copy link
Contributor Author

@adamaltman, It will be included, I'm about to merge the PR

Signed-off-by: BohdanPetryshyn <b.y.petryshyn@gmail.com>
@BohdanPetryshyn BohdanPetryshyn force-pushed the fix/preview-server-hot-reload branch from b8ca5a9 to f842f6a Compare May 10, 2022 14:46
@BohdanPetryshyn BohdanPetryshyn merged commit a27ad8f into master May 10, 2022
@BohdanPetryshyn BohdanPetryshyn deleted the fix/preview-server-hot-reload branch May 10, 2022 14:57
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.

preview-docs reload is not working anymore
5 participants