Repository navigation
feat(blog): goal-driven keyword planning and article approval - #33
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
blog().suggestSeeds(workspaceId)andsuggestSeeds(workspaceId, seeds, prompt)wrapPOST /v1/blog/keywords/suggest(scopeai, 402 on an empty balance) and return the suggested terms.blog().submitArticle(workspaceId, articleId)wrapsPOST /v1/blog/articles/{id}/submit(scopeposts) and moves a draft, failed or rejected article toin_review.BlogSettingsgainsgoal,focusTopics,avoidTopicsandplanRun(newBlogPlanRunrecord);BlogParams.Settingsgainsgoal,focusTopics,avoidTopics; newBlogGoalconstants.BlogKeyword.fitReason;BlogArticleStatus.IN_REVIEW.planKeywordsno longer fills the calendar, picking a keyword isstatus(PLANNED), publishing andpublishAtneed an article in review.Breaking
autoPublishis removed fromBlogSettingsandBlogParams.Settings. Every article goes throughsubmitArticlebefore it publishes.fopost-springdoes not touch the blog surface, so no downstream PR is needed.Matches the live contract
The blog resource now matches the deployed API exactly: the workspace goes on the query string as
workspace_id, request bodies stay camelCase as the OpenAPI request schemas define them (workspaceIdin the body), single objects are read bare and lists from{data}, and responses are read in snake_case (plan_run,keyword_data_available,website_secret,fit_reason, ...).BlogWebsiteTest.statusis nowhttpStatus, read fromhttp_status; a failed test still returnsokfalse. Test fixtures use the real wire format and assert theworkspace_idquery key.Tested
mvn -B verifyon JDK 21: 163 tests, 0 failures, BUILD SUCCESS (sources and javadoc jars included). New tests coversuggestSeeds(body, empty call, 402) andsubmitArticle(path, query,in_review, 409), plus the new settings and keyword fields.API
The fopost/fopost
feature/blog-planning-pipelinechange is merged and deployed, so the new endpoints and fields are live.