-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Refactor ducks #572
Merged
Merged
Refactor ducks #572
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c8cbbe6
Refactor ducks
ashmaroli 52ace1b
Update DraftNew component
ashmaroli 2acfb5a
Update tests for draftsDuck
ashmaroli 26188d0
Use { del } from 'utils/fetch' to dispatch DELETE
ashmaroli 4286ff1
Merge branch 'master' into refactor-ducks
ashmaroli 78a62b2
Add documentation for validateMetadata arrow fn.
ashmaroli de3bde4
Fix comments
ashmaroli 70ce632
Dispatch clearErrors from utilsDucks
ashmaroli d0845f3
Compact expressions without affecting readability
ashmaroli 7e150d4
Improve test coverage of staticfilesDuck
ashmaroli 2b2ab1e
Add a fixture array of staticfile and directory
ashmaroli c06e5ea
Avoid using one-liner expressions
ashmaroli 4fff71e
Merge branch 'master' into refactor-ducks
ashmaroli bf43ff7
Avoid using one-liner expressions
ashmaroli 3a89d36
Remove helper with code-smell
ashmaroli 016e3f9
Revert internal function name change
ashmaroli 6e6eaed
Fix double dispatch in DELETE request wrapper
ashmaroli f36b942
Merge branch 'master' into refactor-ducks
ashmaroli 4661521
Remove unused import
ashmaroli af027aa
Merge branch 'master' into refactor-ducks
ashmaroli 1236103
Merge branch 'master' into refactor-ducks
ashmaroli 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
Next
Next commit
Refactor ducks
- Loading branch information
commit c8cbbe6750f3ddc4416d8c0ca3c9936790bbb750
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
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 is not just validating metadata but also mutating
path
. I don't think we should mix things here. In order to understand what this function does to path, we need to look into it. It seems not write to me.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.
So, what would be the best way to proceed yet avoid repeating the following logic in every duck (that handles
metadata
)?