Commit Graph

6576 Commits

Author SHA1 Message Date
mpl 014a8d9c0b website: s/Camlistore/Perkeep/ on index page
Issue #981

Change-Id: I2d0b47d85aea828644c55e765fb04afdc3add947
2017-12-12 16:55:30 +01: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
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
Paul Lindner 3654a0f623 vendor: update go-charset, atom, html, text packages
to Rev 9dfe39835686865bff950a07b394c12a98ddc811 for golang.org/x/html
to Rev 88f656faf3f37f690df1a32515b479415e1a6769 for golang.org/x/text

These packages moved from code.google.com to their new home
in golang.org/x/html and golang.org/x/text

Change-Id: I4ee45ae1e18eb05ef7b0a8ec69e2f1f11d140340
2017-11-20 10:37:56 -08:00
Mathieu Lonjaret c45e929016 Merge "vendor: update xsrftoken" 2017-11-20 17:48:32 +00:00
Paul Lindner b24717a83f vendor: update xsrftoken
To rev 9dfe39835686865bff950a07b394c12a98ddc811

The xsrftoken package now lives in golang.org/x/net instead of code.google.com.

Change-Id: I4d98b1e50099dc7a1e1188f5c4311cd28c79f44a
2017-11-20 08:47:16 -08:00
Tilman Dilo e3ac2acb7a clients/android: update gomobile to fix docker build
Due to a change in the Android NDK (starting from r16), building the
docker container fails with an error during the installation of
gomobile:
    fatal error: 'stdlib.h' file not found

This issue was addressed in more recent versions of gomobile, which
are compatible with the new NDK.
See https://github.com/golang/go/issues/21802

This CL simply updates gomobile to the most recent commit.

Change-Id: I87c468c34de441bc6acd40b717d1d950014e5a99
2017-11-20 00:11:13 +01:00
Mathieu Lonjaret 2424354614 Merge "pkg/search: print describe speed only in debug" 2017-11-17 16:43:20 +00:00
mpl e8077cba6e pkg/search: print describe speed only in debug
Change-Id: I4f22ccf907702b2d2bc7ada06af7ef85b2f1963a
2017-11-17 17:42:01 +01:00
Mathieu Lonjaret 4b81ecc384 Merge "clients/android: for building, make caching volume dirs on the host" 2017-11-17 16:27:01 +00:00
mpl 281d2a16b6 clients/android: for building, make caching volume dirs on the host
The ~/.gradle and ~/.android dirs are mounted as volumes for the docker
container when building the app, because we want the gradle and android
deps to be cached on the host after they've been downloaded.

The build process was assuming that these dirs always already existed,
and this assumption makes the building process fail if they actually
don't.

Therefore this change creates the directories on the host if they don't
already exist.

Change-Id: I90b5f73db0ffcbe76adc12157e142091808bde2b
2017-11-14 19:24:56 +01:00
mpl 0837889762 client/android: fix container detection for docker in systemd cgroup
It seems that on other (more modern?) configurations, the cgroup for
processes in docker is /system.slice/docker.service instead of /docker.

I have not been able to reproduce such a configuration. But until we have
a better way to detect whether a process is in docker, it's probably ok
to just add the new path to validate the detection, which this change
does.

Fixes #973

Change-Id: I9d52bcd79a906fdc1f8310b2c8063930cf9807fb
2017-11-14 17:44:36 +01:00
Mathieu Lonjaret 32fbc99a66 Merge "app/publisher/js/zsearch.go: do not track in git" 2017-10-29 15:16:19 +00:00
mpl 28bc007676 pkg/serverinit: add low-level config generation for Backblaze B2
Fixes #971

Change-Id: Iba944e3597009b18a380007b72fba5127e9a1698
2017-10-26 19:59:01 +02:00
Mathieu Lonjaret 3911a41bd5 Merge "cmd/*: always output on fatal errors" 2017-10-22 15:07:06 +00:00
mpl a6a3cac0df cmd/*: always output on fatal errors
This CL addresses issues #685 and #862.

The general problem is that some critical errors, that lead clients such
as camput to exit with failure, are not displayed when not running in
verbose mode.

The reason that happens is because of code such as:

	if *cmdmain.FlagVerbose {
		log.SetOutput(cmdmain.Stderr)
	} else {
		log.SetOutput(ioutil.Discard)
	}

which means that in non-verbose mode we discard absolutely all log
messages, even those that would be printed during a Fatal* call.

To address that problem, we introduce a logger, as well as the Printf
and Logf functions using it, in pkg/cmdmain. These two functions only
output when *cmdmain.FlagVerbose is true.

Commands such as camput or camtool should now always:
1) log.SetOutput(cmdmain.Stderr) in init().
2) use log.Printf for messages that should always be printed.
3) use cmdmain.Printf/Logf for messages that should only be printed when
*cmdmain.FlagVerbose is true.
4) use log.Fatal for critical errors.
5) optionally, set the Verbose and Logger of the client(s) they are
using.

Also, camput and camtool are now relying on the global -verbose flag
from cmdmain, instead of having to define one for each subcommand.

fixes #685
fixes #862

Change-Id: I088032fd28184a201076097bf878894b22a8a120
2017-10-19 02:22:44 +02:00
Daniel Lipovetsky 493cc283d2 website: update help page community URL
Remove the trailing slash from the community URL

Fixes #967

Change-Id: I487eaa71d6a1536293c6aa655dc280d9f2cdb276
2017-10-16 22:55:30 -07:00
Mathieu Lonjaret 39cd6029e3 Merge "server/camlistored/ui: remove useless crossorigin and integrity for leaflet" 2017-10-08 03:05:18 +00:00
mpl b95aa162d7 server/camlistored/ui: remove useless crossorigin and integrity for leaflet
I had pasted them from an example when I started to work on the map
aspect, and forgot to look up their meaning/use afterwards.

Fixes #964

Change-Id: Ic92dcd9641a7fad49707c24f114b370f2c887828
2017-10-06 01:09:56 +02:00
Mathieu Lonjaret 5ca092b8ca Merge "vendor: update Google Closure" 2017-10-05 22:57:27 +00:00
mpl c3e7fc8002 app/publisher: remove useless urlquery escaper
According to https://golang.org/pkg/html/template/#ErrorCode
(ErrPredefinedEscaper), the template engine already performs
sanitization equivalent to urlquery on any pipeline, and therefore makes
this extra urlquery call unnecessary, and even maybe harmful.

Change-Id: I7fcce395bf015b64022d1ac66b42069cdefb69eb
2017-10-04 18:41:32 +02:00