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

Merge to prod: 14 Oct 2021 #312

Merged
merged 6 commits into from
Oct 14, 2021
Merged

Merge to prod: 14 Oct 2021 #312

merged 6 commits into from
Oct 14, 2021

Conversation

dependabot bot and others added 6 commits September 27, 2021 04:10
* Feat: add request schema for collection router

* Feat: add mover service

* Fix: updateOrder to not require sha

* Feat: add base directory service

* Feat: add collection directory service

* Feat: add updateSubcollection method in SubcollectionPageService

* Feat: subcollectionDirectoryService

* Feat: add collection router

* Feat: add v2 router to server

* Fix: change const variable in collection directory service

* Fix: update auth middleware for new endpoints

* Fix: conversion of collection.yml to file object array

* Fix: collectionPageService and subcollectionPageService tests

This commit fixes an issue in the subcollection page tests for create. We previously expected the same object to be returned in the convertDataToMarkdown function, which would always succeed regardless of the actual value of the third_nav_title parameter in the front matter, since the object itself was modified in the method.

* Feat: add test for update subcollection

* Fix: change request schema for reorder directory

* Fix: tighten check for path in base directory service

* Fix: use new method arguments for moverService

* Fix: update return of listAllCollections

* Fix: only return file name for subcollectionDirectoryService.listFiles

* Fix: githubService as dependency for SubcollectionDIrectoryService

* Fix: handle placeholder file separately when renaming subdirectory

* Fix: populate reqDetails object properly

* Feat: add route for moving collection pages

* Feat: add unlinked pages directory service

* Feat: add unlinked page directory endpoints to unlinked page router

This commit also changes the endpoint of unlinked pages to use `/:siteName/pages/pages`, to prevent overlap with the page moving endpoint

* Fix: update auth middleware with new routes

* Fix: retrieve target collection/subcollectionname from move request body

* Fix: import move directory request schema for unlinked page router

* Fix: variable name

* Fix: add check for protected folder when deleting

* Fix: do not change third_nav_title when renaming files

* Fix: deslugify subcollection name on creation

This commit deslugifies the subcollection name provided by the user on creation - the purpose of this is to remain consistent with the display on the cms vs on the actual site, since we currently have to deslugify the subcollection name when populating the third_nav_title for files on existing subfolders.

* Fix: reorder subcollection

* Fix: deslugify renamed subcollection

* Fix: enforce that items and target are required for reorder and move directory schemas

* Chore: install packages

* Feat: slugify collection names when creating new collections

* fix(services): change response schema for createDirectory services

* Feat: change format of git tree request object

* Nit: add comment

* Nit: edit comment for directory

* Feat: add additional validation for subcollection and page creation and renaming

* Fix: rename subcollection check

* Fix: slugify renamed collection

* Fix: add check for invalid file types when renaming subcollection

* Fix: modify validation to exclude .md for files

* Feat: change titleSpecialCharCheck to use destructured arguments

* Chore: move validators file under validators folder

* Refactor/collection refactor tests (#283)

* Feat: add tests for baseDirectoryService

* Feat: add tests for collectionDirectoryService

* Feat: add tests for subcollectionDirectoryService

* Feat: add tests for unlinkedPagesDirectoryService

* Feat: add tests for collections router

* Feat: add tests for new routes in unlinked pages router

* Feat: add tests for moverService

* Feat: add tests for navYmlService

* Fix: update schema for creating collection/subcollection in tests

* Fix: update baseDirectoryService tests with new git tree format

* Feat: add validation tests for names

* Feat: add test for slugification when renaming collection

* Fix: change file names in tests to include .md

* Chore: update test command to use updated env vars

Co-authored-by: Alexis <[email protected]>
Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

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

lgtm!

@alexanderleegs alexanderleegs merged commit 21abe3d into master Oct 14, 2021
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.

3 participants