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

remove map files post #11225 #11414

Merged
merged 13 commits into from
Oct 5, 2022
Merged

remove map files post #11225 #11414

merged 13 commits into from
Oct 5, 2022

Conversation

jywarren
Copy link
Member

Fixes #2606 and follows map node conversion to note nodes in #11225

@gitpod-io
Copy link

gitpod-io bot commented Sep 13, 2022

@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Merging #11414 (19fa210) into main (f060bd2) will increase coverage by 6.18%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #11414      +/-   ##
==========================================
+ Coverage   77.14%   83.33%   +6.18%     
==========================================
  Files          96       93       -3     
  Lines        6051     5772     -279     
==========================================
+ Hits         4668     4810     +142     
+ Misses       1383      962     -421     
Impacted Files Coverage Δ
app/controllers/map_controller.rb 100.00% <ø> (+49.66%) ⬆️
app/models/node.rb 91.04% <ø> (+0.20%) ⬆️
app/controllers/notes_controller.rb 85.76% <100.00%> (+0.10%) ⬆️
app/models/user.rb 86.49% <0.00%> (+1.09%) ⬆️
app/controllers/user_sessions_controller.rb 67.48% <0.00%> (+1.22%) ⬆️
app/controllers/wiki_controller.rb 82.85% <0.00%> (+1.78%) ⬆️
app/models/image.rb 82.05% <0.00%> (+2.56%) ⬆️
app/models/spamaway.rb 97.43% <0.00%> (+2.56%) ⬆️
app/api/srch/search.rb 70.51% <0.00%> (+3.84%) ⬆️
... and 8 more

@github-actions
Copy link

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8274557506/artifacts/362295117

@github-actions
Copy link

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8288797860/artifacts/363308453

@node = if params[:node_type] == "map"
# legacy map type converted to notes but preserving paths:
Node.where(path: "/map/#{params[:name]}/#{params[:date]}").first
elsif params[:author] && params[:date] && params[:id]
Copy link

Choose a reason for hiding this comment

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

Align elsif with if.

Node.where(path: "/map/#{params[:name]}/#{params[:date]}").first
elsif params[:author] && params[:date] && params[:id]
Node.find_notes(params[:author], params[:date], params[:id]) || Node.where(path: "/report/#{params[:id]}").first
else
Copy link

Choose a reason for hiding this comment

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

Align else with if.

end
@node = if params[:node_type] == "map"
# legacy map type converted to notes but preserving paths:
Node.where(path: "/map/#{params[:name]}/#{params[:date]}").first
Copy link

Choose a reason for hiding this comment

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

Use 2 (not -4) spaces for indentation.

@github-actions
Copy link

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8289259169/artifacts/363336576

@github-actions
Copy link

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8290637734/artifacts/363431987

@jywarren
Copy link
Member Author

jywarren commented Oct 1, 2022

Still facing:

Progress: |========================ERROR NotesControllerTest#test_should_show_a_map_node (22.00s)
Minitest::UnexpectedError:         
ActionController::UrlGenerationError: No route matches 
{:action=>"show", :controller=>"notes", :date=>"09-14-2022", :name=>"a-map-page"}
            test/functional/notes_controller_test.rb:52:in `block in <class:NotesControllerTest>'

@jywarren
Copy link
Member Author

jywarren commented Oct 2, 2022

map pages work when tested manually in gitpod!

Tried reordering the routes. Next could look at docs for functional test routing.

@jywarren
Copy link
Member Author

jywarren commented Oct 3, 2022

Same error.

@github-actions
Copy link

github-actions bot commented Oct 3, 2022

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8578026213/artifacts/383961812

@codeclimate
Copy link

codeclimate bot commented Oct 5, 2022

Code Climate has analyzed commit 19fa210 and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 4

View more on Code Climate.

@github-actions
Copy link

github-actions bot commented Oct 5, 2022

This pull request generated screenshots of many common pages in the running app. You should be able to download and view them here:
https://github.com/publiclab/plots2/suites/8624384870/artifacts/387221857

@jywarren
Copy link
Member Author

jywarren commented Oct 5, 2022

Hooray! Trying this.

@jywarren jywarren merged commit a16b18b into main Oct 5, 2022
@jywarren
Copy link
Member Author

jywarren commented Oct 6, 2022

Confirmed working on stable!!

@jywarren
Copy link
Member Author

jywarren commented Oct 6, 2022

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.

remove "field_publication_date_value" and similar fields, and copy their content into the node body
1 participant