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

rf: centralize base64 image handling and secscan cleanup #2595

Merged
merged 11 commits into from
Jun 24, 2024

Conversation

dave-gray101
Copy link
Collaborator

@dave-gray101 dave-gray101 commented Jun 17, 2024

start breaking up the giant refactor once again. This contains:

  • centralizes base64 image handling in preparation for the refactor
    • adds a test for the otherwise untested png path
  • removes a broken / outdated test
  • improves loglines
  • propagates errors out of pkg/library
  • handles errors to quiet down secscan where the changes are painless.
  • other simple fixes to warnings and errors
  • runs go mod tidy

None of these should be controversial, and I'd like to keep features unrelated to image handling out of this PR, but I'll tackle similarly simple changes here if comments are added.

… fixes to warnings and errors, removes a broken / outdated test, runs go mod tidy, and as the actual change, centralizes base64 image handling

Signed-off-by: Dave Lee <[email protected]>
Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 2ce8bb6
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/6678bfae4fdaf50008cfabbb
😎 Deploy Preview https://deploy-preview-2595--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dave-gray101 dave-gray101 enabled auto-merge (squash) June 17, 2024 23:37
@dave-gray101 dave-gray101 changed the title rf: centralize base64 image handling rf: centralize base64 image handling and secscan cleanup Jun 17, 2024
pkg/library/dynaload.go Outdated Show resolved Hide resolved
pkg/library/dynaload.go Outdated Show resolved Hide resolved
mudler
mudler previously approved these changes Jun 23, 2024
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

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

Thanks @dave-gray101 ! Nice clean up!

Signed-off-by: Dave Lee <[email protected]>
@dave-gray101 dave-gray101 merged commit 12513eb into mudler:master Jun 24, 2024
32 checks passed
@dave-gray101 dave-gray101 deleted the rf-p-datapng branch October 12, 2024 23:02
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.

2 participants