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

Switch to Ghost-SDK helpers #10618

Closed
10 of 12 tasks
rishabhgrg opened this issue Mar 18, 2019 · 3 comments
Closed
10 of 12 tasks

Switch to Ghost-SDK helpers #10618

rishabhgrg opened this issue Mar 18, 2019 · 3 comments
Assignees
Labels
server / core Issues relating to the server or core of Ghost

Comments

@rishabhgrg
Copy link
Contributor

rishabhgrg commented Mar 18, 2019

We have started to add and maintain collection of tools/helpers to interact with Ghost APIs in [Ghost-SDK], and in line with goal to streamline Ghost Core to be more headless/APIs, aim here is to update Core with existing helpers in SDK along with extracting more helpers/lib to SDK that don't belong in core

This issue collects list of existing and possible new helpers in SDK to update existing code in Ghost core:

@rishabhgrg rishabhgrg self-assigned this Mar 18, 2019
@kirrg001 kirrg001 added the server / core Issues relating to the server or core of Ghost label Mar 18, 2019
@ErisDS
Copy link
Member

ErisDS commented Mar 28, 2019

countWords should also be cleaned up - it's used in Ghost, Ghost-Admin and Ghost-SDK as part of the reading time helper.

rishabhgrg added a commit to rishabhgrg/Ghost-Admin that referenced this issue Apr 15, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit to rishabhgrg/Ghost-Admin that referenced this issue Apr 15, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit to rishabhgrg/Ghost that referenced this issue Apr 15, 2019
refs TryGhost#10618

- Added @tryghost/helpers dependency to use Ghost-SDK helpers
- Updated countWords, countImages helpers and removed local copy
rishabhgrg added a commit to rishabhgrg/Ghost-Admin that referenced this issue Apr 15, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit to rishabhgrg/Ghost-Admin that referenced this issue Apr 15, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit that referenced this issue Apr 16, 2019
refs #10618

- Added @tryghost/helpers dependency to use Ghost-SDK helpers
- Updated countWords, countImages helpers and removed local copy
rishabhgrg added a commit to rishabhgrg/Ghost-Admin that referenced this issue Apr 16, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit to TryGhost/Admin that referenced this issue Apr 16, 2019
refs TryGhost/Ghost#10618

- Updated use of `countWords`, `countImages` and `stripTags` helper from Ghost SDK
- Removed existing local utils copy
rishabhgrg added a commit to rishabhgrg/Ghost that referenced this issue May 7, 2019
refs TryGhost#10618

- Removed duplicate calculation for reading time by using SDK method
rishabhgrg added a commit to rishabhgrg/Ghost that referenced this issue May 7, 2019
refs TryGhost#10618

- Updated lib safe string security method
rishabhgrg added a commit that referenced this issue May 7, 2019
refs #10618

- Removed duplicate calculation for reading time by using SDK method
rishabhgrg added a commit that referenced this issue May 7, 2019
refs #10618

- Updated lib safe string security method
naz added a commit to TryGhost/SDK that referenced this issue Jun 6, 2019
refs TryGhost/Ghost#10618

- Extracted from ghost core to decouple lib/common usages between API and dynamic frontend
naz added a commit to naz/Ghost that referenced this issue Jun 6, 2019
refs TryGhost#10618

- /lib/social/urls was extracted into SDK to move more modules out of the core and reduce coupling of the theme layer
rishabhgrg added a commit to rishabhgrg/Ghost that referenced this issue Jun 7, 2019
refs TryGhost#10618

- Visibility methods don't belong on model, but are generic utils
- Used directly from ghost helper's visibility methods, cleans up core
- Removes direct model dependency of theme helper
- Updated `foreach_spec` to correct test data as per schema - visibility property cannot be empty
rishabhgrg added a commit that referenced this issue Jun 9, 2019
refs #10618

- Visibility methods don't belong on model, but are generic utils
- Used directly from ghost helper's visibility methods, cleans up core
- Removes direct model dependency of theme helper
- Updated `foreach_spec` to correct test data as per schema - visibility property cannot be empty
@naz
Copy link
Member

naz commented Jun 26, 2019

@rishabhgrg can you please update the check list on what's done and what's left to close this issue out 😉

@ErisDS ErisDS closed this as completed Aug 21, 2019
@ErisDS
Copy link
Member

ErisDS commented Aug 21, 2019

Closing in favour of having specific tasks when we need them

naz added a commit to naz/Ghost-SDK that referenced this issue Sep 24, 2020
refs TryGhost/Ghost#10618

- Extracted from ghost core to decouple lib/common usages between API and dynamic frontend
naz added a commit to naz/Ghost-SDK that referenced this issue Sep 28, 2020
refs TryGhost/Ghost#10618

- Extracted from ghost core to decouple lib/common usages between API and dynamic frontend
naz added a commit to naz/Ghost-SDK that referenced this issue Sep 28, 2020
refs TryGhost/Ghost#10618

- Extracted from ghost core to decouple lib/common usages between API and dynamic frontend
daniellockyer pushed a commit that referenced this issue Jul 26, 2022
refs #10618

- Updated lib safe string security method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server / core Issues relating to the server or core of Ghost
Projects
None yet
Development

No branches or pull requests

4 participants