-
Notifications
You must be signed in to change notification settings - Fork 45
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
Comment functionality on shared and synchronized collections #699 #1237
Conversation
8bd958b
to
53218e9
Compare
53218e9
to
3250e1c
Compare
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'with reaction' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/NestedGroups: Maximum example group nesting exceeded [4/3].
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'when user is authorized' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [23/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
describe 'PUT /api/v1/comments/:id' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [23/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
|
||
describe 'PUT /api/v1/comments/:id' do | ||
context 'with only content' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [25/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
|
||
describe 'PUT /api/v1/comments/:id' do | ||
context 'with only content' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/NestedGroups: Maximum example group nesting exceeded [4/3].
3b4d36c
to
1aee79c
Compare
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'when user is authorized' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [15/10]
spec/api/comment_api_spec.rb
Outdated
allow_any_instance_of(WardenAuthentication).to receive(:current_user).and_return(author_user) | ||
end | ||
|
||
describe 'GET /api/v1/comments/:id' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [16/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
describe 'POST /api/v1/comments/create' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [15/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
|
||
describe 'POST /api/v1/comments/create' do | ||
context 'with content' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [16/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'with sample' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [16/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'with sample' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/NestedGroups: Maximum example group nesting exceeded [4/3].
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'with reaction' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [17/10]
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
context 'with reaction' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/NestedGroups: Maximum example group nesting exceeded [4/3].
spec/api/comment_api_spec.rb
Outdated
end | ||
end | ||
|
||
describe 'DELETE /api/v1/comments/:id' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSpec/MultipleMemoizedHelpers: Example group has too many memoized helpers [16/10]
f78381f
to
95fd46b
Compare
95fd46b
to
8e67d16
Compare
LCOV of commit
|
8e67d16
to
2a08311
Compare
LCOV of commit
|
LCOV of commit
|
6e0f459
to
1c81d6b
Compare
LCOV of commit
|
1c81d6b
to
0909bd3
Compare
LCOV of commit
|
0909bd3
to
7cdf91e
Compare
… lists - Comments are associated with Wellplate, Screen, Research plan - Code is refactored
…earchPlan - Comment section is added in standard tabs in Reaction, Screen, Wellplate, ResearchPlan - Code is modified to make generic - Code is refactored
- Comment section name is generalized - Comment section is hidden if element is being created
- From general comments, user can see all other details comment - From section specific comments, user can see all other details comment
- Code is refactored - Deploy file change is reverted
- axios package is removed
refactor folder structure for Comments components
…fic users only add comment matrice show the comment icon, comment header button based on the UI activation upon matrix check remove unnecessary code
refactor the code
refactor the code
add test code for synchronized collections
- it will notify all users with access to the element - it will notify all group members when the group has access to the element
reload the comments when the header comment button or the comment button within the details tabs are clicked fix the notification to display the element type and element name refactor the implementation of the notification to fix the collection owner not getting the notification on new comments reposition the comment button in the header section
cleanup the schema.rb
…rary refactor the comment_api.rb codes
30c92f4
to
05ea853
Compare
fix the comment_api_spec.rb file for the updated create API endpoint fix the association issue
05ea853
to
1804971
Compare
FactoryBot.define do | ||
factory :comment do | ||
transient do | ||
user { create(:user) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FactoryBot/FactoryAssociationWithStrategy: Use an implicit, explicit or inline definition instead of hard coding a strategy for setting association within factory.
LCOV of commit
|
Closes #563