sync page support logId #70

Closed
dead-horse opened this Issue Dec 11, 2013 · 5 comments

Projects

None yet

2 participants

@dead-horse
Member

GET http://cnpmjs,org/sync/connect 会发起一次同步。
同步开始之后,url变成http://cnpmjs,org/sync/connect#logid=100

GET http://cnpmjs,org/sync/connect#logid=100将不会重新发起一次同步,将会直接开始获取logid=100的同步日志

这样sync由于请求npmjs.org/connect超时导致未能同步的时候,直接刷新页面就可以重试,如果开始同步,刷新也不会重新触发多一次同步

@dead-horse dead-horse was assigned Dec 11, 2013
@dead-horse
Member
@fengmk2
Member
fengmk2 commented Dec 11, 2013

最好是 POST http://cnpmjs,org/sync/connect 会发起一次同步

GET http://cnpmjs,org/sync/connect 没有logid就跳到package 页面

@dead-horse
Member

pic
现在点其他页面的Sync我是直接跳转到/sync/connect,由这个页面发起PUT /sync/connect的请求开始同步的,这样会不会方便点?

@fengmk2
Member
fengmk2 commented Dec 11, 2013

那就先这样做吧

@dead-horse
Member

这样如果想要同步一个模块,也可以直接打开cnpmjs.org/sync/connect这个页面就可以了

@dead-horse dead-horse added a commit that referenced this issue Dec 11, 2013
@dead-horse dead-horse refine sync page, fiexd #70 0074e54
@fengmk2 fengmk2 closed this Dec 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment