Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make example code optional for brick example details #11

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

Closed
mirkoCrobu wants to merge 6 commits into main from issue_795_bricks_returns_500

Conversation

@mirkoCrobu
Copy link
Contributor

@mirkoCrobu mirkoCrobu commented Oct 21, 2025
edited
Loading

Motivation

closes #795

Change description

Some bricks don't have any code example folder.
In this case, we should return null for the field "code_examples" when calling /v1/bricks/{brick_id}

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

Copy link
Contributor

@dido18 dido18 left a comment

Choose a reason for hiding this comment

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

I would add unit tests where possible to avoid regression

mirkoCrobu reacted with thumbs up emoji
Copy link
Contributor

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

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

LGTM, but do you think we are able to add a test for this. AFAIK, we already have some testdata, maybe it isn't too complicated to do it.

mirkoCrobu reacted with rocket emoji
Copy link
Contributor

@dido18 dido18 left a comment

Choose a reason for hiding this comment

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

Nice to have Test 🦸

I suggest simplifying the code of the example, (e.g remoe png and other stuff not needed) and keep only the files that we need to test

mirkoCrobu reacted with rocket emoji
.licensed.yml Outdated
apps:
- source_path: ./cmd/arduino-app-cli


Copy link
Contributor

Choose a reason for hiding this comment

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

remove this space

Copy link
Contributor Author

Replaced by : #19

@per1234 per1234 added the duplicate This issue or pull request already exists label Oct 24, 2025
@Xayton Xayton deleted the issue_795_bricks_returns_500 branch October 24, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lucarin91 lucarin91 lucarin91 left review comments

@dido18 dido18 dido18 left review comments

Labels

duplicate This issue or pull request already exists

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /