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

Add FieldsTrait #544

Merged
merged 10 commits into from
Sep 27, 2023
Merged

Add FieldsTrait #544

merged 10 commits into from
Sep 27, 2023

Conversation

RiscadoA
Copy link
Member

@RiscadoA RiscadoA commented Sep 13, 2023

Description

Adds the FieldsTrait, which allows exposing the fields of an object. Will be super useful for serialization and editor UI.

Checklist

  • Self-review changes.
  • Evaluate impact on the documentation.
  • Ensure test coverage.
  • Write new samples.

@RiscadoA RiscadoA added A-Core B-Reflection S-Blocked Blocked on another issue or PR labels Sep 13, 2023
@RiscadoA RiscadoA added this to the 0.0 Nursery milestone Sep 13, 2023
@RiscadoA RiscadoA self-assigned this Sep 13, 2023
@RiscadoA RiscadoA linked an issue Sep 13, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Sep 13, 2023

PR Preview Action v1.4.4
🚀 Deployed preview to https://GameDevTecnico.github.io/cubos/pr-preview/pr-544/
on branch gh-pages at 2023-09-26 13:37 UTC

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (0489cc1) 26.92% compared to head (6cbf4d4) 27.67%.
Report is 17 commits behind head on main.

❗ Current head 6cbf4d4 differs from pull request most recent head cea1187. Consider uploading reports for the commit cea1187 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #544      +/-   ##
==========================================
+ Coverage   26.92%   27.67%   +0.75%     
==========================================
  Files          89       91       +2     
  Lines        6797     6872      +75     
==========================================
+ Hits         1830     1902      +72     
- Misses       4967     4970       +3     
Files Coverage Δ
...re/include/cubos/core/reflection/traits/fields.hpp 100.00% <100.00%> (ø)
core/include/cubos/core/reflection/type.hpp 100.00% <100.00%> (ø)
core/src/cubos/core/reflection/traits/fields.cpp 95.38% <95.38%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RiscadoA RiscadoA removed the S-Blocked Blocked on another issue or PR label Sep 19, 2023
@RiscadoA RiscadoA requested review from luishfonseca and removed request for luishfonseca September 25, 2023 15:26
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/2)

core/samples/reflection/traits/fields/main.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (2/2)

core/src/cubos/core/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/traits/fields.hpp Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/traits/fields.hpp Outdated Show resolved Hide resolved
core/tests/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/tests/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/tests/reflection/traits/fields.cpp Outdated Show resolved Hide resolved
core/include/cubos/core/reflection/traits/fields.hpp Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot dismissed stale reviews from themself September 26, 2023 13:39

No clang-tidy warnings found so I assume my comments were addressed

@RiscadoA RiscadoA merged commit 6140905 into main Sep 27, 2023
2 checks passed
@RiscadoA RiscadoA deleted the 482-add-fieldstrait branch September 27, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add FieldsTrait
2 participants