Skip to content

Conversation

@mirkoCrobu
Copy link
Contributor

@mirkoCrobu mirkoCrobu commented Oct 21, 2025

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.

@mirkoCrobu mirkoCrobu self-assigned this Oct 21, 2025
@mirkoCrobu mirkoCrobu closed this Oct 21, 2025
@mirkoCrobu mirkoCrobu reopened this Oct 21, 2025
@mirkoCrobu mirkoCrobu requested a review from a team October 21, 2025 13:31
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

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.

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

.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

@mirkoCrobu
Copy link
Contributor Author

Replaced by : #19

@mirkoCrobu mirkoCrobu closed this Oct 24, 2025
@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

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants