reggi / shopify

Just a place to track issues and feature requests that I have for shopify
3 stars 1 forks source link

Article hidden with future published_at date #8

Open reggi opened 9 years ago

reggi commented 9 years ago

In shopify you can set a published_at time so that an article will be visible designated future time. It seems that if you send over a future published_at time with the Shopify Article API it is still visible within ones shop. I tried using the "published": false option but that didn't save the published_at time in the post.

It seems if you send a future time and just "save" the post in the admin it makes it hidden, which makes this feel like a bug to me.

Here are some more details with screenshots. :rainbow: :+1: :satellite: :dolphin:

NOTE: The use of March 1st is an arbitrary time, it is used as a relative future date.

If I create a article with a published at date set for the future like this

{
  "title": "2015 March Flow",
  "published_at": "2015-03-01T00:00:00-05:00",
}

It will create an article that looks like this:

screen shot 2015-02-09 at 1 19 07 pm

When I simply add any change to the article and save it it becomes hidden:

screen shot 2015-02-09 at 1 19 25 pm

Note that when I save it it becomes hidden.

When I pass "published": true

{
  "title": "2015 March Flow",
  "published_at": "2015-03-01T00:00:00-05:00",
  "published": true
}

The article doesn't retain the future published_at date (the part that says "will become visible on")

screen shot 2015-02-09 at 1 22 32 pm

What I'm trying to achieve is have a post hidden and set the date to a future date, which isn't a possible option with the API currently.

reggi commented 9 years ago

Posted: https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/article-hidden-with-future-published_at-date-243292