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

map editing permissions initial #937

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ViditChitkara
Copy link
Member

closes #893

@@ -257,6 +257,11 @@ def after_create
self.version = last.version + 1
end

def change_edit_permission editable
Copy link

Choose a reason for hiding this comment

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

Use def with parentheses when there are parameters.

@@ -257,6 +257,11 @@ def after_create
self.version = last.version + 1
end

def change_edit_permission editable
self.is_editable = editable
self.save!
Copy link

Choose a reason for hiding this comment

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

Redundant self detected.

@codeclimate
Copy link

codeclimate bot commented Aug 13, 2019

Code Climate has analyzed commit 78980d7 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Style 2

View more on Code Climate.

@ViditChitkara
Copy link
Member Author

@jywarren I'm starting with this. We still need some more details on how to put the toggle permission button on the map sidebar. @sashadev-sky shared some cool ideas #893 . If you could have a look at this and the issue as well!
Thanks.

@codecov
Copy link

codecov bot commented Aug 13, 2019

Codecov Report

Merging #937 into main will decrease coverage by 4.41%.
The diff coverage is 21.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #937      +/-   ##
==========================================
- Coverage   72.71%   68.29%   -4.42%     
==========================================
  Files          35       35              
  Lines        1356     1369      +13     
==========================================
- Hits          986      935      -51     
- Misses        370      434      +64
Impacted Files Coverage Δ
app/controllers/maps_controller.rb 85.12% <18.18%> (-6.77%) ⬇️
app/models/map.rb 56.66% <33.33%> (-36.54%) ⬇️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable/disable editing functionality needed for collaborative image placement
1 participant