Commit Graph

6594 Commits

Author SHA1 Message Date
mpl c45893a69b importer/gphotos: add enabling Drive API to instructions
Fixes #984

Change-Id: I12126318cf836536306fd7a861a730fc3196c7b7
2017-12-15 19:08:51 +01:00
Brad Fitzpatrick fcd5ff14e9 importer/gphotos: misc rate limit cleanups
Remove dynamic rate limit adjustment for now. It was racy.

No need to be super fast, anyway, as long as it catches up eventually.

But we can make it smarter later. I wanted to get it correct first.

Change-Id: Id5b5fc946546d8d9c0720f1c0ec2f341a17cdd01
2017-12-14 22:16:57 -08:00
Mathieu Lonjaret 286dbacc62 Merge "camweb: make syncing to github concurrent" 2017-12-15 00:08:13 +00:00
mpl 31389f8ab2 camweb: make syncing to github concurrent
Camweb is in charge of syncing the commits from the gerrit repository to
our mirror on github.

It also sends the commits as e-mails to the Camlistore mailing-list.

The former was only happening after the latter did, but there was no
reason to do it that way, as these tasks are independent. Moreover, when
sending e-mails is problematic (issue #980), it delays syncing to
github.

This change therefore makes syncing to github concurrent with
sending the e-mails.

Change-Id: I63a2b3f5b49df58ca30ec5153ce65eafb44b5b28
2017-12-15 01:05:56 +01:00
mpl 602fe8a2d4 website: serve Perkeep title
Issue #981

Change-Id: I2d323523ed29dfcb5989178c7cc0c78c462f972f
2017-12-14 16:10:43 +01:00
Mathieu Lonjaret 198d39ba5d Merge "website: s/Camlistore/Perkeep/ on index page" 2017-12-14 03:40:45 +00:00
Paul Lindner 7ae6e00368 pkg/serverinit/testdata: fix tests broken by changing error message for golint
Change-Id: Id48a2ebaed056e50f1ac6b34c4869b07590d55d3
2017-12-13 11:33:30 -08:00
Paul Lindner 04b9c0b1c4 pkg: lint fixes for "context.Context should be the first parameter of a function"
Change-Id: I0185eec5616c72d859978aec03880860421c7193
2017-12-13 11:33:21 -08:00
Paul Lindner 1383869054 all: lint fixes for "receiver name should be consistent with previous receiver name"
Change-Id: I05275cd20c92349e37365e2cbd29fa9f8d834101
2017-12-13 11:31:25 -08:00
Paul Lindner c58e07942e all: lint fixes for "if block ends with a return statement"
Change-Id: I1c244f14995478860c19695695f287d541a7a39c
2017-12-13 11:31:25 -08:00
Paul Lindner 1533d9822f pkg: lint fixes for "error var should have name of the form errFoo"
Change-Id: I0112c331b9f54f271c3724c3ad510a1426f710d4
2017-12-13 11:31:25 -08:00
Paul Lindner ba92702834 all: lint fixes for "should omit 2nd value from range"
Change-Id: I7bb19d376f96a39ecae7dbdb4d6808f704bae5fb
2017-12-13 11:31:25 -08:00
Paul Lindner e97eae91dc all: lint fixes for "don't use leading k in Go names"
Change-Id: I8647c1dcc0535b1fc8dc0e1b1ca4623c23d6ac7c
2017-12-13 11:31:25 -08:00
mpl 9a492bd05f camweb: set "go-import" meta for both camlistore.org and perkeep.org
It is not enough for go get to work, as our packages won't have the
right import path comment, but i believe it is the first necessary step.

Issue #981

Change-Id: I9418f944fc9bed603fd6acc0761e003cafdcfa8a
2017-12-13 18:32:19 +01:00
Mathieu Lonjaret d3339954df Merge "camweb: make godoc work for both camlistore.org and perkeep.org" 2017-12-13 16:05:04 +00:00
mpl 014a8d9c0b website: s/Camlistore/Perkeep/ on index page
Issue #981

Change-Id: I2d0b47d85aea828644c55e765fb04afdc3add947
2017-12-12 16:55:30 +01:00
mpl 0293828131 camweb: make godoc work for both camlistore.org and perkeep.org
Change-Id: I97db4ed1c56b0ddd0535fbc7841a89c49170fd35
2017-12-12 16:30:31 +01:00
Paul Lindner e028e3d7cd Merge "all: lint fixes for 'error strings should not be capitalized or end with punctuation or a newline'" 2017-12-11 21:29:14 +00:00
mpl d0ea11828a camweb: change the src dir on disk it uses to perkeep.org
Issue #981

Change-Id: I907bbb9c98dc8f9b62bd67c7785b3339f9ca3fad
2017-12-11 20:50:09 +01:00
Mathieu Lonjaret 527d42eb03 Merge "genfileembed: always embed paths with slashes" 2017-12-11 17:40:23 +00:00
Paul Lindner 15feaeb24c all: lint fixes for 'error strings should not be capitalized or end with punctuation or a newline'
Change-Id: I9c3766a51ac8be694ae76befff4b6fa9a85e34eb
2017-12-11 06:13:25 -08:00
Brad Fitzpatrick f107661182 Merge "all: replace usage of deprecated oauth2.NoContext with context.Background()" 2017-12-09 23:16:01 +00:00
Paul Lindner b9c2da7032 all: replace usage of deprecated oauth2.NoContext with context.Background()
Change-Id: I4fdc9719911498dc6864b4f0189ab8b01db68308
2017-12-09 14:48:53 -08:00
Mathieu Lonjaret d1258bfb1c Merge "camweb: migrate to perkeep.org as the production domain" 2017-12-09 05:51:00 +00:00
mpl 6460c449f0 camweb: migrate to perkeep.org as the production domain
issue #981

Change-Id: I0355e2ee7cf36440996f0bd00c1f2ff5bfce213d
2017-12-09 06:48:30 +01:00
Brad Fitzpatrick 0ea9386d73 Merge "C: add Paul Lindner (Google CLA)" 2017-12-09 02:14:17 +00:00
Attila Tajti f47366c659 genfileembed: always embed paths with slashes
Also change make.go to propagate -all to genfileembed.

Fixes #982

Change-Id: I605d5fc35ae0fc9c12fca639ff0a0111836b653c
2017-12-08 09:24:14 +01:00
Mathieu Lonjaret 29693e2cc5 Merge "camweb: use mailgun for sending commit e-mails" 2017-12-07 22:30:12 +00:00
mpl f86f8de294 camweb: use mailgun for sending commit e-mails
github.com/mailgun/mailgun-go vendored in at rev
17e8bd11e87cb660ba5da8d635bbeae44b9443ac

github.com/pkg/errors vendored in at rev
f15c970de5b76fac0b59abb32d62c17cc7bed265

Fixes #980

Change-Id: I824ee3aa7493e062e6d916030dd62e0bd51ce477
2017-12-06 20:43:07 +01:00
Paul Lindner 1fa037c3c5 C: add Paul Lindner (Google CLA)
Change-Id: I05650a87426b64b2c2edd08c3da8f54018ead27e
2017-12-05 17:19:05 -08:00
Paul Lindner be2dd5ee43 pkg/deploy/gce: use a single append to concatenate two slices
Change-Id: I3e4e0a8f9e934007513737155d15ee03494ccf6b
2017-12-05 11:30:41 -08:00
Paul Lindner 4bb1f42d5f pkg: simplify code - the make function defaults capacity == length, and replace usage of string(buf.Bytes()) with buf.String()
Change-Id: I3ddd3e139b46af1f7166c16e747e52cab0955064
2017-12-05 11:28:59 -08:00
Paul Lindner 680b296c2e pkg: simplify code - use time.Until and time.Since
Change-Id: I9c023bd4bb312e05bfbd6b1e33425500bbc5aada
2017-12-05 11:22:37 -08:00
Paul Lindner 4f4da7aa21 Remove dead code in gce.go
Change-Id: I823935eff1d8ce9f7be87bae5074b58557383877
2017-12-04 14:41:43 -08:00
Paul Lindner d822385502 Simplify: use increment operators
Change-Id: I5e89211aa5f3423fabcabeebabc4db5fb1812191
2017-12-04 14:41:36 -08:00
Paul Lindner a92f5ddfc8 Use io.Seek* constants instead of deprecated os.SEEK* constants
Change-Id: I4cc06bdcec87df16663981479d71e5732cdfb7d4
2017-12-03 17:04:02 -08:00
Paul Lindner 1afc3450c2 Remove blank line in blobpacked to apply comments to the package
Change-Id: I040cd9e36584c7b17b809691495f81295733c6a1
2017-12-03 17:01:29 -08:00
mpl a91a98c58a pkg/test: remove FakeIndex
And fix its main users: tests in pkg/search.

Fixes #883

Change-Id: Ib04b8d6f2d56bfb24a8900520c97b24bccb3c78b
2017-12-01 19:59:26 +01:00
Paul Lindner f28eb3cce8 Remove appengine server and the old python blobserver
Change-Id: I734f4621f77ce902050e9b37805e7f8912f75e97
2017-11-30 19:13:37 -08:00
Mathieu Lonjaret 7e9a0f9d42 Merge "camlistored/ui: reset new attribute row on navigation" 2017-11-29 20:44:28 +00:00
Paul Lindner 3e703921d1 vendor: update myitcv.io/react and react javascript library
Update myitcv.io/react to revision:
  bca7c66b77ed8a5b86fb77cff70914c4a7cc3ce5

Update react, react-dom to v15.6.2 based on instructions in
  https://reactjs.org/blog/2017/09/25/react-v15.6.2.html

Add vendor/embed/react/update.sh script to assist with future updates

Update mobile UI to fix problems documented here:
  https://reactjs.org/warnings/legacy-factories.html

Update mobile.html and debug_console.html to use minified js

Fixes #977

Change-Id: I15ea81822e4f85669b321d5b3eb8b169f534def7
2017-11-27 08:55:30 -08:00
Paul Lindner b09cd377d7 Switch to stdlib context from golang.org/x/net/context
This switches most usages of the pre-1.7 context library to use the
standard library.  Remaining usages are in:

  app/publisher/main.go
  pkg/fs/...

Change-Id: Ia74acc39499dcb39892342a2c9a2776537cf49f1
2017-11-26 01:12:26 -08:00
mpl 1d70d377cf camlistored/ui: reset new attribute row on navigation
When on the permanode details aspect, and navigating from one permanode
to the next, if some change had already been started on the new
attribute row, the change would "propagate" to the next permanode, which
is not desirable.

That is because the state of the new attribute row was not reset on
navigation, which this change does.

Fixes #923

Change-Id: I6dee8763b2c1fcac4b3592b21adc954eab9d0ffe
2017-11-23 17:50:15 +01:00
Paul Lindner 07a8df180c vendor: update bazil.org/fuse
Full Revision Information
- path: bazil.org/fuse
  rev: 371fbbdaa8987b715bdd21d6adc4c9b20155f748

Change-Id: I6787dec20690ca0392222a7f0fa17f9b45c956c7
2017-11-22 05:28:42 -08:00
Paul Lindner f9dcdfb07a vendor: Update kv library to latest revision.
Localized changes:
  deleted: vendor/github.com/cznic/zappy/testdata/zappy_error_src_dump_purego.bin
  deleted: vendor/github.com/cznic/lldb/testdata/LICENSE
  deleted: vendor/github.com/cznic/lldb/testdata/fortunes.txt
  deleted: vendor/github.com/golang/snappy/testdata/Mark.Twain-Tom.Sawyer.txt
  deleted: vendor/github.com/golang/snappy/testdata/Mark.Twain-Tom.Sawyer.txt.rawsnappy

Package moves:
  github.com/cznic/exp/lldb -> github.com/cznic/lldb

Removed:
  github.com/cznic/exp/dbm

New packages for dependencies:
  github.com/edsrzf/mmap-go
  github.com/golang/snappy

Full Revision information
- path: github.com/cznic/fileutil
  rev: 2d566d841097e1297dfb576f809cf9eeecbdbc37
- path: github.com/cznic/internal
  rev: 4747030f7cf2f4c0a01512b00cd68734b167ac3b
- path: github.com/cznic/kv
  rev: 892ccf731fb7aa5e9aa300eb24456d1519afcfc7
- path: github.com/cznic/lldb
  rev: bea8611dd5c407f3c5eab9f9c68e887a27dc6f0e
- path: github.com/cznic/mathutil
  rev: 09cde8d5df5fd3e1944897ce6d00d83dd5ed3a91
- path: github.com/cznic/sortutil
  rev: 4c7342852e65c2088c981288f2c5610d10b9f7f4
- path: github.com/cznic/zappy
  rev: 2533cb5b45cc6c07421468ce262899ddc9d53fb7
- path: github.com/edsrzf/mmap-go
  rev: 0bce6a6887123b67a60366d2c9fe2dfb74289d2e
- path: github.com/golang/snappy
  rev: 553a641470496b2327abcac10b36396bd98e45c9

Change-Id: I0c23174efa4d416326aa26c83f4cd8291ef57a96
2017-11-20 22:21:26 -08:00
Mathieu Lonjaret c4d3a2b973 Merge "pkg/cmdmain: set flag.CommandLine output to Stderr" 2017-11-20 21:59:32 +00:00
Paul Lindner 593c5c6afa vendor: remove code.googlecom/p/snappy-go
There are no references to this package, plus it appears that zappy
is used instead for kv.

Change-Id: I0a5b182c22380d77a1f57554fc33b0dac6cc4ad7
2017-11-20 12:57:37 -08:00
Paul Lindner 2bac255a33 vendor: remove code.google.com/p/go.crypto
This package has migrated away from code.google.com/p/go.crypto but
it's actually unused so just remove it.

Change-Id: I12882263471a396eda4b4b4580e919cd00a6b141
2017-11-20 12:25:46 -08:00
mpl 960d5fd76e pkg/cmdmain: set flag.CommandLine output to Stderr
Otherwise the calls to flag.PrintDefaults would print to os.Stderr
instead of cmdmain.Stderr.

Change-Id: Iaad0884b5d583ff808e8129671d274601aa401cb
2017-11-20 21:14:27 +01:00
Paul Lindner 141328c697 vendor: update qr package
to Rev 48b2ede4844e13f1a2b7ce4d2529c9af7e359fc5

The qr package has moved from code.google.com/p/rsc/qr to it's new
canonical home at rsc.io/qr

Change-Id: Ibb04ee7e83c9707ff253a91abb4f60f9b150d61c
2017-11-20 12:08:08 -08:00