* Revert "Revert "feat(core): Align GitHub metadata handling with other backends (#3292)""
This reverts commit 5bdd3df9ccbb5149c22d79987ebdcd6cab4b261f.
* fix(backend-github): fix migration code
* test(backend-github): fix test
* test(e2e): shorten wait time
* test(e2e): try and fix test on CI
* feat: cascade & compose media folders - initial commit
* refactor: code cleanup
* fix: pass field instead of folder to getAsset
* fix: only show field media files in library
* test: fix medial library selector test
* fix: fallback to original path when asset not found
* fix: only show field media files in media library
* fix: properly handle empty strings in field folders
* fix(media_folder_relative): use collection name in unpublished entry
* refactor: pass arguments as object to AssetProxy ctor
* feat: support media folders per collection
* feat: resolve media files path based on entry path
* fix: asset public path resolving
* refactor: introduce typescript for AssetProxy
* refactor: code cleanup
* refactor(asset-proxy): add tests,switch to typescript,extract arguments
* refactor: typescript for editorialWorkflow
* refactor: add typescript for media library actions
* refactor: fix type error on map set
* refactor: move locale selector into reducer
* refactor: add typescript for entries actions
* refactor: remove duplication between asset store and media lib
* feat: load assets from backend using API
* refactor(github): add typescript, cache media files
* fix: don't load media URL if already loaded
* feat: add media folder config to collection
* fix: load assets from API when not in UI state
* feat: load entry media files when opening media library
* fix: editorial workflow draft media files bug fixes
* test(unit): fix unit tests
* fix: editor control losing focus
* style: add eslint object-shorthand rule
* test(cypress): re-record mock data
* fix: fix non github backends, large media
* test: uncomment only in tests
* fix(backend-test): add missing displayURL property
* test(e2e): add media library tests
* test(e2e): enable visual testing
* test(e2e): add github backend media library tests
* test(e2e): add git-gateway large media tests
* chore: post rebase fixes
* test: fix tests
* test: fix tests
* test(cypress): fix tests
* docs: add media_folder docs
* test(e2e): add media library delete test
* test(e2e): try and fix image comparison on CI
* ci: reduce test machines from 9 to 8
* test: add reducers and selectors unit tests
* test(e2e): disable visual regression testing for now
* test: add getAsset unit tests
* refactor: use Asset class component instead of hooks
* build: don't inline source maps
* test: add more media path tests
* fix(backend-github): prepend collection name
* chore: prefer migrating entries
* chore: cleanup
* chore: move migration to listUnpublishedBranches
* chore: prefer flowAsync
* chore: feedback updates
* refactor: extract current metadata version to a const
* refactor: don't send pulls request on open authoring
* test: update recorded data
* fix: hardcode migration key/branch logic
* test(backend-github): add unit tests for migration code
* fix(github-graphql): add ref property to result of createBranch
* test(cypress): update recorded data
* fix: load unpublished entries once
* fix: run migration for published draft entry
* fix: failing test
* chore: use hardcoded version number
* fix: use hardcoded version number
* test(cypress): update recorded data
* add GitHub GraphQL api initial support
* support mutiple backends for e2e tests - initial commit
* add github backend e2e test (currently skipped), fix bugs per tests
* refactor e2e tests, add fork workflow tests, support fork workflow in GraphQL api
* remove log message that might contain authentication token
* return empty error when commit is not found when using GraphQL (align with base class)
* disable github backend tests
* fix bugs introduced after rebase of GraphQL and OpenAuthoring features
* test: update tests per openAuthoring changes, split tests into multiple files
* fix: pass in headers for pagination requests, avoid async iterator as it requires a polyfill on old browsers
* test(e2e): disable github backend tests
* Allow for relative paths of media files
fixes#325
* Switch to calculating the relative path based on collection
The required relative path is now calculated depending on the
location of the collection of the current entry having the
media inserted into. And the configuration option has now been
changed to a boolean flag.
This allows collections to not neccesarily all be in the same
location relative to the media folder, and simplifies config.
* Clean up code and fix linting
* Add unit tests to resolveMediaFilename()
* Rework insertMedia action to fetch own config
This moves more of the media path resolution logic into the action
which makes it easier to unit test
* Add unit tests for the mediaLibrary.insertMedia action
* yarn run format
* add dependabot config (#2580)
* Fix handling of displayURLs which are strings
* Add fromFetchArguments to unsentRequest
* Add parseLinkHeader to backendUtil
* Handle paginated endpoints in GitHub API
* Rename fork workflow to Open Authoring across the whole repo
* Fixes for bugs in GitHub API introduced by Open Authoring changes
* Fix getDeployPreview
* Fix incorrect auth header formatting GitHub implementation
cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r309633387
* Remove unused and broken method from GitHub API
cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r308687145
* Fix editorialWorkflowGit method in GitHub API
* Request published entry content from origin repo
* Better error when deleting a published post in Open Authoring
* Rename to Open Authoring in fork request message
Also adds a note to the fork request message that an existing fork of
the same repo will be used automatically.
* fix linting
* Make filterPromises resolve entries before filtering
* Add filterPromisesWith & onlySuccessfulPromises to utility library
* Memoize user method in GitHub API
* Make storeMetadata safe to call concurrently in GitHub API
* Fork workflow: startup and authentication
* Fork workflow: backend support
* Fork workflow: disable unused UI elements
* Fork workflow: docs
* Fork workflow: fix deploy previews
* Suggested edits for fork workflow doc
* Change future tense to present
* Fork workflow: add beta status to docs
* remove debug statement
* rename fork workflow to Open Authoring