Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

fix #46, add CronJob #56

Closed
wants to merge 7 commits into from
Closed

fix #46, add CronJob #56

wants to merge 7 commits into from

Conversation

lucemia
Copy link

@lucemia lucemia commented Jun 16, 2020

Add CronJob regularly pull finished stories from GliaStudio via API and store to WordPress

  • design a way to sync data
  • get story by api

@lucemia lucemia self-assigned this Jun 16, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2020

Codecov Report

Merging #56 into dev will decrease coverage by 0.79%.
The diff coverage is 51.49%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev      #56      +/-   ##
============================================
- Coverage     66.13%   65.34%   -0.80%     
- Complexity      314      422     +108     
============================================
  Files           651      687      +36     
  Lines         10768    11711     +943     
============================================
+ Hits           7121     7652     +531     
- Misses         3647     4059     +412     
Impacted Files Coverage Δ Complexity Δ
...rc/dashboard/animations/outputs/animationOutput.js 100.00% <ø> (+60.00%) 0.00 <0.00> (ø)
...ssets/src/dashboard/animations/parts/move/index.js 100.00% <ø> (ø) 0.00 <0.00> (ø)
...ssets/src/dashboard/animations/parts/zoom/index.js 100.00% <ø> (ø) 0.00 <0.00> (ø)
assets/src/dashboard/app/index.js 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ashboard/app/views/aiStoryQueue/emptyView/index.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...sets/src/dashboard/app/views/aiStoryQueue/index.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...dashboard/app/views/aiStoryQueue/listView/index.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...rc/dashboard/app/views/aiStoryQueue/useQueueApi.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...s/src/dashboard/app/views/createStory/constants.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...rc/dashboard/app/views/createStory/header/index.js 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 212 more

@github-actions
Copy link

github-actions bot commented Jun 16, 2020

Size Change: 0 B

Total Size: 849 kB

ℹ️ View Unchanged
Filename Size Change
assets/css/edit-story.css 269 B 0 B
assets/css/stories-dashboard.css 305 B 0 B
assets/css/web-stories-embed-block.css 515 B 0 B
assets/js/edit-story.js 377 kB 0 B
assets/js/stories-dashboard.js 456 kB 0 B
assets/js/web-stories-embed-block.js 15.7 kB 0 B

compressed-size-action

@lucemia
Copy link
Author

lucemia commented Jun 16, 2020

Run Cron Manually
http://localhost:8899/wp-cron.php?doing_wp_cron

碰到錯誤
cURL error 7: Failed to connect to localhost port 8899: Connection refused
原因是開發環境在 docker 內

照上面的建議修改
mjstealey/wordpress-nginx-docker#8

之後就正常了
http://docker.for.mac.localhost:8899/wp-admin/admin.php?page=stories-dashboard

@lucemia
Copy link
Author

lucemia commented Jun 16, 2020

@lucemia
Copy link
Author

lucemia commented Jun 16, 2020

@lucemia
Copy link
Author

lucemia commented Jun 16, 2020

GoogleForCreators#2222 (comment)
status = auto-draft won't show up. use draft instead

@lucemia
Copy link
Author

lucemia commented Jun 17, 2020

there is no npm in php server... move related code to cloud function

@lucemia lucemia closed this Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants