-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Fix BB-768 : Unset Author Credit leads to bugs #1051
Merged
Merged
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b40057a
bug(Edition & Edition-Group): fixes Unset Author Credit leads to bugs
Tarunmeena0901 0066632
fixed linting errors
Tarunmeena0901 dabbd36
better solution
Tarunmeena0901 c701344
removed some previous unecessary changes
Tarunmeena0901 fd60e88
saving the credit section state in database also made schema changes
Tarunmeena0901 d175cea
linting error fix
Tarunmeena0901 f5c5320
fix(Auhtor-Credit-section) : used saved state of credit section in f…
Tarunmeena0901 64ef0a0
Merge branch 'metabrainz:master' into BB-768
Tarunmeena0901 3b73396
made changes in bookbrainz.sql and fix linting error
Tarunmeena0901 2b853b3
better warning display checks , also used the creditsection state in …
Tarunmeena0901 0d69622
changes in bb.edition_group_import view
Tarunmeena0901 ac12b87
fix lint error
Tarunmeena0901 472dc68
minor fix
Tarunmeena0901 bba6428
fix failing build test
Tarunmeena0901 e32636b
fail build test fix #2
Tarunmeena0901 d1bcb7f
Merge branch 'metabrainz:master' into BB-768
Tarunmeena0901 d35e293
merge latest changes and also i made changes in test file which i don…
Tarunmeena0901 ff859a6
Merge branch 'master' into BB-768
MonkeyDo 163288f
Merge branch 'metabrainz:master' into BB-768
Tarunmeena0901 f6c2689
removed creditSection from redux state and made changes in sql migrat…
Tarunmeena0901 013ef9c
lint error fix
Tarunmeena0901 3851777
better comments in sql migrations
Tarunmeena0901 194d550
minor error fix
Tarunmeena0901 c7d250a
build error fix
Tarunmeena0901 157943a
reverting some changes
Tarunmeena0901 887e6f1
minor error fix
Tarunmeena0901 869f02f
build error fix
Tarunmeena0901 5b11d05
Update bookbrainz-data package version
MonkeyDo c8d1097
Linting
MonkeyDo fdb4b0f
Merge branch 'master' into pr/1051
MonkeyDo 21dd8cf
Merge branch 'master' into BB-768
MonkeyDo 0bfbe8f
Remove SQL column setting
MonkeyDo ac5d9b7
Merge branch 'BB-768' of github.com:Tarunmeena0901/bookbrainz-site in…
MonkeyDo 87d5560
Merge branch 'master' into BB-768
MonkeyDo 9d0de38
Merge branch 'metabrainz:master' into BB-768
Tarunmeena0901 0535cc1
Fix Author Credit creation
MonkeyDo 96a28a2
Rename migration folder
MonkeyDo ccc1c2b
Fix revision diff display when removing author credits
MonkeyDo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This parameter and its usage below are probably a leftover from your previous attempt to solve the issue. Modern React components have no second function parameter as far as I know.
Same goes for the
EditionDisplayPage
component.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.
YES ! you are correct, Kell. React components do not have a second function parameter. Thank you for pointing this out. This is indeed something I overlooked in my previous solution, where I attempted to prevent the warning about unset author credits from displaying on the edition and edition group pages. However, it's clear now that this approach won't work , i will fix this
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.
but now as I think that when we are creating a edition or an edition group we don't allow to submit the form until the author credit is filled or "No author credit" checkbox is checked
so we have two cases here while creating
when someone as set that there is no author credit
author credits are provided while creating
in both the cases after creating the edition or edition group , the main page should not show any warning then why do we even have the warning ???
maybe we should remove it completely
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.
You are right about this, but the warning is not there only for new entities.
We do want to show the warning for existing entites that are missing that information.
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.
Oh i see now