-
Notifications
You must be signed in to change notification settings - Fork 1
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 some small pathing issues with new script #88
Conversation
- add preProcessors since api table formatting completely breaks api.md when run after templateReplacer
Reviewer's Guide by SourceryThis PR addresses path handling issues and enhances file processing capabilities in the build scripts. The changes primarily focus on improving path resolution for component roots, adding pre-processing support for file content, and updating the directory path determination method to use ES modules' import.meta.url instead of __dirname. Class diagram for updated AuroLibraryUtils and FileProcessorConfigclassDiagram
class AuroLibraryUtils {
+getDirname() string
+getProjectRootPath string
}
note for AuroLibraryUtils "Updated getDirname to use import.meta.url"
class FileProcessorConfig {
+string|InputFileType input
+string output
+Partial<MarkdownMagicOptions> mdMagicConfig
+Array<(contents: string) => string> preProcessors
+Array<(contents: string) => string> postProcessors
}
note for FileProcessorConfig "Added preProcessors property"
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DukeFerdinand - I've reviewed your changes - here's some feedback:
Overall Comments:
- The move of formatApiTable from postProcessors to preProcessors represents a significant change in processing order. Please document this change and its implications in the PR description.
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Apparently it's more "correct" to do it this way :)
@sourcery-ai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DukeFerdinand - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Bug: preProcessors loop is using postProcessors array (link)
Overall Comments:
- There's a bug in the preProcessors implementation - it's using
postProcessors
array instead ofpreProcessors
in the loop in processContentForFile - The default parameter was removed from fileConfigs but it's still referenced in the code. Consider keeping the default or updating all callers
Here's what I looked at during the review
- 🔴 General issues: 1 blocking issue
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
- fixes preprocessor loop using wrong array - use path.join instead of path string concat
a562a6f
to
ef7ef6f
Compare
@sourcery-ai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DukeFerdinand - I've reviewed your changes - here's some feedback:
Overall Comments:
- The removal of the default parameter in fileConfigs() could be a breaking change if code was relying on those defaults. Consider either keeping the default or documenting this change in the breaking changes section.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirmed this works with a change(AlaskaAirlines/auro-flight#140)
🎉 This PR is included in version 3.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Alaska Airlines Pull Request
Since we're on a breaking change 3.0.0, there are other non-issues that will completely break your docs build, but these three commits were actually problems in the library :)
Closes #89
Before Submitting this pull request:
Development
sectionnote: all pull requests require at least one linked ticket
Ready For Review
, all ticket's linked underDevelopment
must have their status changed toReady For Review
as wellBy submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I have performed a self-review of my own update.
Summary by Sourcery
Fix path handling issues in the fromAuroComponentRoot function and enhance file processing capabilities by adding preProcessors. Update AuroLibraryUtils to use import.meta.url for directory path determination.
Bug Fixes:
Enhancements:
Summary by Sourcery
Fix path handling issues in the fromAuroComponentRoot function and enhance file processing capabilities by adding preProcessors. Update AuroLibraryUtils to use import.meta.url for directory path determination.
Bug Fixes:
Enhancements: