avo icon indicating copy to clipboard operation
avo copied to clipboard

feature: generate resource from model attributes

Open Paul-Bob opened this issue 2 years ago • 2 comments

Description

Fixes https://github.com/avo-hq/avo/pull/182

Todo:

  • [ ] Hook into rails generate model command and run the resource generator (see how factory_bot does it)

Checklist:

  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have added tests that prove my fix is effective or that my feature works

Paul-Bob avatar Sep 18 '22 17:09 Paul-Bob

Code Climate has analyzed commit 91cf1c5b and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 4

View more on Code Climate.

codeclimate[bot] avatar Sep 18 '22 17:09 codeclimate[bot]

Codecov Report

Base: 94.29% // Head: 93.86% // Decreases project coverage by -0.42% :warning:

Coverage data is based on head (96425f2) compared to base (06d1f45). Patch has no changes to coverable lines.

:exclamation: Current head 96425f2 differs from pull request most recent head 91cf1c5. Consider uploading reports for the commit 91cf1c5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1244      +/-   ##
==========================================
- Coverage   94.29%   93.86%   -0.43%     
==========================================
  Files         543      554      +11     
  Lines       10778    11361     +583     
==========================================
+ Hits        10163    10664     +501     
- Misses        615      697      +82     
Impacted Files Coverage Δ
lib/generators/avo/resource_generator.rb 45.37% <0.00%> (-54.63%) :arrow_down:
...ec/dummy/app/controllers/avo/courses_controller.rb 78.94% <0.00%> (-21.06%) :arrow_down:
app/components/avo/filters_component.rb 92.30% <0.00%> (-7.70%) :arrow_down:
app/helpers/avo/application_helper.rb 64.28% <0.00%> (-6.73%) :arrow_down:
.../dummy/app/avo/resources/photo_comment_resource.rb 95.00% <0.00%> (-5.00%) :arrow_down:
app/components/avo/index/grid_item_component.rb 46.66% <0.00%> (-3.34%) :arrow_down:
app/controllers/avo/search_controller.rb 92.95% <0.00%> (-3.20%) :arrow_down:
.../avo/fields/common/single_file_viewer_component.rb 39.28% <0.00%> (-1.63%) :arrow_down:
app/controllers/avo/base_controller.rb 92.18% <0.00%> (-1.22%) :arrow_down:
lib/avo/licensing/h_q.rb 82.65% <0.00%> (-1.05%) :arrow_down:
... and 54 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Sep 21 '22 21:09 codecov[bot]

This PR has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] avatar Oct 25 '22 04:10 github-actions[bot]

Can we add some tests to this too? They can be modeled after our current ones.

adrianthedev avatar Oct 31 '22 16:10 adrianthedev