PLT-2600/PLT-2770 Added Get Public Link modal and added new API for public file links (#2892)

* Switched public file links to use a GetLinkModal

* Separated getFile and the new getPublicFile api calls
Этот коммит содержится в:
Harrison Healey
2016-05-05 16:35:03 -04:00
коммит произвёл Christopher Speller
родитель 696ffb4745
Коммит d2ddf40f56
15 изменённых файлов: 489 добавлений и 290 удалений

Просмотреть файл

@@ -68,16 +68,13 @@ func BenchmarkGetPublicLink(b *testing.B) {
b.Fatal("Unable to upload file for benchmark")
}
data := make(map[string]string)
data["filename"] = filenames[0]
// wait a bit for files to ready
time.Sleep(5 * time.Second)
// Benchmark Start
b.ResetTimer()
for i := 0; i < b.N; i++ {
if _, downErr := Client.GetPublicLink(data); downErr != nil {
if _, downErr := Client.GetPublicLink(filenames[0]); downErr != nil {
b.Fatal(downErr)
}
}