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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor question card #9922

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Refactor question card #9922

merged 3 commits into from
Jul 30, 2021

Conversation

Manasa2850
Copy link
Member

@Manasa2850 Manasa2850 commented Jul 19, 2021

Fixes #8731 (<=== Add issue number here)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 馃搼 and links the original issue above 馃敆
  • tests pass -- look for a green checkbox 鉁旓笍 a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 馃搧
  • screenshots/GIFs are attached 馃搸 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@gitpod-io
Copy link

gitpod-io bot commented Jul 19, 2021

<p class="meta"><%= render partial: "dashboard/node_meta", locals: { node: node } %></p>
</div>
</div>
<%= render partial: 'notes/card', locals: { node: node, i: i, tagname: tagname } %>
Copy link
Member

Choose a reason for hiding this comment

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

This looks great. What do you think might be happening with the tests? The instance variable @widget should be persisted into the partial template. What are the logs saying?

Thanks!!

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm new here, first day, but I did see an error on the test run that may help.
undefined local variable or method tagname' for #<#<Class:0x000055de006c8e30>:0x000055de0460da78> app/views/questions/_questions.html.erb:5:in block in _app_views_questions__questions_html_erb__4321177480707985642_47206022398320'
app/views/questions/_questions.html.erb:3:in each_with_index' app/views/questions/_questions.html.erb:3:in _app_views_questions__questions_html_erb__4321177480707985642_47206022398320'
app/views/questions/index.html.erb:79:in _app_views_questions_index_html_erb__3421750489030126837_47206022279460' test/integration/login_flow_test.rb:58:in block in class:LoginFlowTest'

@codeclimate
Copy link

codeclimate bot commented Jul 30, 2021

Code Climate has analyzed commit 27bbb25 and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Jul 30, 2021

Codecov Report

Merging #9922 (27bbb25) into main (4a891dc) will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #9922      +/-   ##
==========================================
+ Coverage   82.14%   82.26%   +0.11%     
==========================================
  Files          98       98              
  Lines        5960     5966       +6     
==========================================
+ Hits         4896     4908      +12     
+ Misses       1064     1058       -6     
Impacted Files Coverage 螖
app/controllers/user_tags_controller.rb 82.43% <0.00%> (-1.86%) 猬囷笍
app/services/search_service.rb 95.00% <0.00%> (-0.10%) 猬囷笍
app/models/concerns/comments_shared.rb 92.00% <0.00%> (+1.52%) 猬嗭笍
app/api/srch/search.rb 71.33% <0.00%> (+4.45%) 猬嗭笍
app/services/execute_search.rb 94.44% <0.00%> (+5.55%) 猬嗭笍

@Manasa2850
Copy link
Member Author

Hi @jywarren I think this is good to go now!
Thanks

@jywarren
Copy link
Member

jywarren commented Jul 30, 2021

Sounds great! Can you just check it once it publishes to stable server?

Great work, @Manasa2850 !!

@jywarren jywarren merged commit 4b835cf into publiclab:main Jul 30, 2021
@Manasa2850
Copy link
Member Author

@jywarren the question cards are rendering fine! However, we can have some improvements in its design. Will discuss this with you in our next call.

reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* refactor question card

* fixed typo

* fixed some of the failing tests
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* refactor question card

* fixed typo

* fixed some of the failing tests
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.

metadata to display on question cards - design discussion
3 participants