Commit Graph

364 Commits

Author SHA1 Message Date
Brad Fitzpatrick 5b3a4e4d00 publish cleanup, add publishHttpRequest type.
Change-Id: I187aaaffb7abf75e83b68b25be442c2806cfcad5
2011-07-02 23:02:11 -07:00
Brad Fitzpatrick f3e409a15c publish cleanup
Change-Id: I81c5296acf3d3b7951782c5417348952902721cf
2011-07-02 18:29:57 -07:00
Brad Fitzpatrick 6179e508e3 publish: show title, members, include javascript blob metadata
start of awesomeness.

Change-Id: I45d63b04fa223b9aafceb9452b179e4ddc52bce5
2011-07-02 17:16:30 -07:00
Brad Fitzpatrick 66c0e430d0 UI: handle roots in the permanode page, show attribute debug at bottom.
Change-Id: Id95b478b7a8c1f3825187ea7b291331be4dbe3f5
2011-07-02 10:36:32 -07:00
Brad Fitzpatrick 5b583ee6e8 Add forgotten tag -> camliTag rename.
Change-Id: I70ae2610131981c40710728e3c1b6f1fe232f805
2011-07-02 10:35:46 -07:00
Brad Fitzpatrick 76b446ad40 When bootstrapping camliRoot publish nodes, set a title for the UI.
Change-Id: I2aad15e9fce6ac1e26b1f8f5ba45241983f6caca
2011-07-02 10:35:19 -07:00
Brad Fitzpatrick 024e801ca7 gofmt the whole tree
Change-Id: Ic1b3dd12a4ede83b299dcf51f342e72d4f8700da
2011-07-02 09:09:50 -07:00
Brad Fitzpatrick 08b8ba8570 On publish page, dump Describe response JSON.
Change-Id: I4e7aa9e12a78f53008873067116b5991f07a7b30
2011-07-02 09:06:34 -07:00
mpl 05c18e873e search for permanodes with the given tag(s)
Change-Id: Ibbe0163da522698c253615a26d4201a7e28348de
2011-07-02 17:16:19 +02:00
Brad Fitzpatrick 97141d4d27 Merge "ui: Linkify paths on permanode page." 2011-07-01 21:34:06 +00:00
Daniel Erat 5b84668e1d ui: Linkify paths on permanode page.
Change-Id: I056896715b174bd3abd91799a86c73f3a8d83d3f
2011-07-01 21:31:41 +00:00
Brad Fitzpatrick d304cb7a42 Merge "Implemented config file includes." 2011-07-01 20:34:12 +00:00
Daniel Erat 80d4e8912a server: Support deleting paths.
Add an "active" column to the indexer's path table and use
it to track deletion of path attributes.

Change-Id: I579d53a80302d0f7ecc51b5c49913cd23814ce73
2011-07-01 19:45:03 +00:00
Brad Fitzpatrick d572f898f7 search/publich: rename PathLookup to PathsLookup, add PathLookup
Change-Id: If6804af2229885cfa22d67d608d17e600d7402f3
2011-06-30 14:36:07 -07:00
Iain Peet 0ca7712691 Implemented config file includes.
I've implemented the previously stubbed out "_file" config expression.  The root
JSON object of the included file becomes the value of the field.  In addition to
searching the CWD and the config dir, the include will search directories listed
in the CAMLI_INCLUDE_PATH environment variable.  The include path is useful
because it gives us the ability to have default configs in git which can be
overridden by custom configs which are provided in another path directory which
gets searched first.

I ended up working on this because, as I was thinking about how to approach
supporting Google Storage, I realized that we would need to have secrets in
includes; this would be a pain when combined with the current configs and
runscripts in GIT.  So, one thing lead to another, and now this is done.

Change-Id: Ib256859326dfceefed90d0fadf83a76adffd538b
2011-06-30 14:21:26 -04:00
Brad Fitzpatrick a251f4064c search/publish: Add PathLook, wire up to publish handler.
Change-Id: I8645c54adbc6d84c18ecc814ca1966113da32d85
2011-06-27 18:42:00 -07:00
Brad Fitzpatrick 40739efa6b search + UI support for finding paths of a permanode
Change-Id: Iae9cfed38660204cf7e85342cd951d542a7258a2
2011-06-25 17:50:38 -07:00
Brad Fitzpatrick 47000868f5 UI: for publishing: let your create root path claims.
Change-Id: Icbe64995d3123190b1679583b8dff9b8427d4f10
2011-06-24 10:34:10 -07:00
Brad Fitzpatrick bf28e7e6e5 Add FileReader onerror handler
Chrome 14.0.797.0 (Official Build 89638) dev has a FileReader bug, btw.  Fixed in 798.

Change-Id: Ie370a368be0ad8e923354f6f02a0cc55705b4642
2011-06-23 18:26:27 -07:00
Brad Fitzpatrick 23ff0a071f publish work: optionally create publish root permanodes+claims on start
Change-Id: I8659e977cea8872443ff2b311a7d0d8a2804c269
2011-06-23 12:12:37 -07:00
Brad Fitzpatrick 12cdf34ea3 Start of publish handler creating its root permanode.
Change-Id: Iedefee0650bd250933e104328023c24e40a94bf6
2011-06-22 22:26:11 -07:00
Brad Fitzpatrick 1f39a91eee Relegate camli/search to camli/search/recent
Change-Id: I7f76db980fe1788a6d0ac556e8176bc83cd6828f
2011-06-22 21:59:17 -07:00
Lindsey Simon 3f7f7afd82 UI: Sexiness all around.
* Adds camli.css
* Updates permanode after mutations (tags, members)
* Inline member delete.

Change-Id: I5525e622a5872afa704ea367bc2264c702c7de43
2011-06-22 18:38:58 -07:00
Lindsey Simon 3ee6467176 Adding padding to the drop target in the UI.
Testeroo.

Change-Id: Icdeedd7687e715e3071f40ebc86490fc95ee6b9f
2011-06-22 15:55:54 -07:00
Brad Fitzpatrick 7b36cfad94 UI: start of publish URL suffix HTML
Change-Id: I3bf9105a3bfc540710f2ef64fec98485b391d260
2011-06-19 14:52:36 -07:00
Brad Fitzpatrick fc9bf8f21f Always send long keyId in jsonsign discovery.
Change-Id: Ic61923268337536b84203a1b11bb2f5b6b7cd457
2011-06-19 14:51:30 -07:00
Brad Fitzpatrick 4915f6aee8 include publish roots in discovery response
Change-Id: I726462e83be9d93fa446e28a7a81410a38acc260
2011-06-19 14:12:56 -07:00
Brad Fitzpatrick ec817d3c0f prettier discovery debug output
Change-Id: I6a3a8e9370526dc0fd550d09a737844c7f32f767
2011-06-19 13:36:40 -07:00
Brad Fitzpatrick c32fec03e1 rename input element; missing from earlier renames.
Change-Id: I6bfce54ee1213943d6ba20528f0b67f32617b2cf
2011-06-19 13:31:44 -07:00
Brad Fitzpatrick 2790963643 More publish work, making UI handler aware of publish roots.
Change-Id: I9cbb00aa3506cece8cf3d7a7b11d445662c4873e
2011-06-19 13:09:43 -07:00
Brad Fitzpatrick ba467698a3 remove UI staticFiles config option, no longer needed.
Change-Id: I7c28a7bbd0eea4a38fce8865db9380a5dab6a949
2011-06-19 12:28:29 -07:00
Brad Fitzpatrick bd15b4a4c2 Serve UI files from binary's embedded copy.
Change-Id: Ibb7902381f80111c943897e82e1eaa2b0ee7fc2c
2011-06-18 12:01:34 -07:00
Brad Fitzpatrick 81547a9eb6 Support for embedding static files (html/js) into the resulting binary.
Also build system changes for start of move to camlistore.org/* namespace
for Go packages.

Not yet wired up to ui.go.

Potential changes required for Go's http package first:
http://codereview.appspot.com/4629047/

Change-Id: I3ae264a5401d3a41e0b6e42b12010f19a9c9dcf7
2011-06-17 14:13:01 -07:00
Brad Fitzpatrick 2520fc8eec Merge "use thumbnail in blobinfo" 2011-06-17 07:31:56 -07:00
mpl 9f32c111e5 use thumbnail in blobinfo
Change-Id: I48722b88ec4f2c80b689034df1c0e3fd5132b36c
2011-06-17 07:30:46 -07:00
Brett Slatkin 58bb35939e beginning of setting URL mount points for permanodes; nothing working yet
Change-Id: I9c33d67121e101369cdd797ef3b1c0ef74c8bdb0
2011-06-16 21:24:59 -07:00
Brad Fitzpatrick 6e388994da Merge "Start of publish handler." 2011-06-16 20:55:45 -07:00
Daniel Erat 3e4cb09ef8 Merge "ui: Add support for setting camliAccess attr on permanodes." 2011-06-16 20:49:40 -07:00
Daniel Erat b1e1193ca6 ui: Add support for setting camliAccess attr on permanodes.
The attribute can be set to "public" to share to everyone or deleted to
keep the permanode private.

Change-Id: I075dd7cc5fb6c3726083ae065282178dd7ae99a3
2011-06-16 20:48:12 -07:00
Brad Fitzpatrick 0d7581ede6 Start of publish handler.
Change-Id: I229c9e00a19aa985050373beda696c5468a94105
2011-06-16 20:48:06 -07:00
Brad Fitzpatrick 91db635396 Fix thumbnail handler 2011-06-16 19:31:36 -07:00
mpl 34c776c81c thumbnail support
Change-Id: Ie0ee67ce278c1d9790c43a9270fc909dd6e68923
2011-06-15 10:42:18 +02:00
Brad Fitzpatrick a57466fe82 Use blob title on index page too. 2011-06-12 10:06:49 -07:00
Brad Fitzpatrick f6fa8fd6d7 UI: show titles that describe returns now 2011-06-12 10:01:56 -07:00
Brad Fitzpatrick 34631a5b92 UI: javascript cleanup 2011-06-12 09:43:42 -07:00
Brad Fitzpatrick 20c4ef7154 search / file work 2011-06-12 00:20:57 -07:00
Brad Fitzpatrick 9524e16795 UI: update members list on dnd, show camliContent 2011-06-11 00:53:13 -07:00
Brad Fitzpatrick 179b706248 don't promote camliContent attr, make member be camliMember 2011-06-11 00:27:17 -07:00
Brad Fitzpatrick 5baf2713d2 UI: show permanode child members 2011-06-10 15:03:01 -07:00
Brad Fitzpatrick 929281e1f3 UI: make permanodes for dnd files, add permanode as member to parent 2011-06-09 22:18:22 -07:00
Brad Fitzpatrick 3ba0f4ad7d UI: drag & drop javascript file upload with client-side dup suppression 2011-06-09 22:05:57 -07:00
Brad Fitzpatrick 26077626a7 advertise download helper in discovery 2011-06-09 22:05:20 -07:00
Brad Fitzpatrick 3c6c4207be download handler: support for verifying a digest in a HEAD request
for use in javascript uploads.
2011-06-09 18:33:26 -07:00
Brad Fitzpatrick 65910dcec4 consolidate redundant javascript. 2011-06-09 16:31:53 -07:00
Brad Fitzpatrick 05dac3405c Merge branch 'master' of camlistore.org:camlistore 2011-06-09 15:00:30 -07:00
Brad Fitzpatrick 0ada583435 UI: js file upload work 2011-06-09 15:00:20 -07:00
mpl 76513f922a test commit: fixing old paths in README 2011-06-09 23:16:09 +02:00
Brad Fitzpatrick 490588d95a show the file dnd area when permanode type is unknown 2011-06-08 18:59:56 -07:00
Brad Fitzpatrick a4c43c359f Add blobref.SeekerFromStreamingFetcher, moving it from UI code. 2011-06-08 17:48:56 -07:00
Brad Fitzpatrick 0f99774750 UI: start moving file upload/dnd stuff to permanode editor. 2011-06-07 10:23:11 -07:00
Brad Fitzpatrick 6a74ef1e80 UI: checkbox to optionally use rolling checksum boundaries 2011-06-06 09:07:23 -07:00
Brad Fitzpatrick 4bef24be00 UI: log download helper errors 2011-06-06 09:07:07 -07:00
Brad Fitzpatrick e7dbdfef43 UI links, search results on index page. 2011-06-04 16:35:48 -07:00
Brad Fitzpatrick b02806c301 UI tweaks 2011-06-04 10:58:13 -07:00
Brad Fitzpatrick 5247f79c34 UI: split newly-added tag input on commas, add multiple 2011-06-04 10:10:45 -07:00
Brad Fitzpatrick 8d84a4de10 Add blobref.SeekTester interface; fixing UI downloads from cond storage. 2011-06-04 09:58:50 -07:00
Brad Fitzpatrick 59e577c023 Rename blobref.Fetcher to blobref.SeekFetcher 2011-06-04 08:56:03 -07:00
Brad Fitzpatrick c6cfe2fda4 Start of 'cond' handler. 2011-06-03 21:52:56 -07:00
Brad Fitzpatrick 7fd8263c29 upload public key on start 2011-06-03 18:42:31 -07:00
Brad Fitzpatrick 35031e761e ui: Show blob contents if text, always offer download link 2011-06-03 18:42:20 -07:00
Brad Fitzpatrick 9f2daec131 UI/search: show all claims for a permanode 2011-06-03 15:23:23 -07:00
Brad Fitzpatrick b28ae35c35 UI: deleting tags 2011-06-03 14:16:00 -07:00
Brad Fitzpatrick 93e6824367 UI: tagging (adding, but not showing or deleting) 2011-05-31 23:25:24 -07:00
Brad Fitzpatrick 2da1ef4093 UI: file download support 2011-05-31 10:20:28 -07:00
Brad Fitzpatrick 2116273f64 more linkify 2011-05-30 18:38:21 -07:00
Brad Fitzpatrick 6b9cba7cf0 Merge branch 'master' of camlistore.org:camlistore 2011-05-30 18:35:21 -07:00
Brad Fitzpatrick 9b7a2aa47d linkify more stuff 2011-05-30 18:35:18 -07:00
Daniel Erat 7e509f8d48 camlistored: enable permanode form when name isn't set 2011-05-30 18:34:05 -07:00
Daniel Erat 4e5ae09caf camlistored: look up name on permanode page 2011-05-30 18:22:21 -07:00
Brad Fitzpatrick f698ee736b linkify search results too 2011-05-30 18:21:06 -07:00
Brad Fitzpatrick fbed27fb0d add camliBlobURL and link 2011-05-30 18:10:07 -07:00
Brad Fitzpatrick 5cd6f4b479 fix js off-by-one in month 2011-05-30 16:48:39 -07:00
Daniel Erat 96cf953488 camlistored: make name-setting on permanode page functional 2011-05-30 16:44:49 -07:00
Brad Fitzpatrick 335f3187a8 blob info page 2011-05-30 16:41:56 -07:00
Brad Fitzpatrick 590e67610b UI: clean up js files. camli.js is common, rest are page-specific. 2011-05-30 13:36:17 -07:00
Brad Fitzpatrick 5c7e645e7a ui: move old debug search func to its own file 2011-05-30 13:00:15 -07:00
Brad Fitzpatrick 4e08e4805f Move some key stuff from camlistored to jsonsign, use from camput. 2011-05-30 12:38:26 -07:00
Brad Fitzpatrick decd29c4e3 convert sync to handler registry; all converted. less code. 2011-05-29 23:01:29 -07:00
Brad Fitzpatrick 10c3ec682c convert search to use handler registry 2011-05-29 22:52:31 -07:00
Brad Fitzpatrick 0385f7baaa camlistored: in config, prefix all storage handlers with 'storage-' 2011-05-29 22:28:17 -07:00
Brad Fitzpatrick 121290c9d1 Merge, use Dan's stuff from Permanode creation button 2011-05-29 21:55:37 -07:00
Brad Fitzpatrick bb85c5599d Javascript: create a permanode button 2011-05-29 21:45:26 -07:00
Daniel Erat 688cb29d99 camlistored: misc cleanup in ui code 2011-05-29 21:41:29 -07:00
Daniel Erat 3ec25aec34 camlistored: Start adding /ui?p=... permanode viewer. 2011-05-29 21:41:24 -07:00
Brad Fitzpatrick 4b66f0dcca UI work; permanode creation (but not upload) 2011-05-29 20:22:24 -07:00
Brad Fitzpatrick 3f928e922b UI work, split debug stuff off separately 2011-05-29 19:05:21 -07:00
Brad Fitzpatrick 2cfe62ed2d Adventures in JavaScript 2011-05-29 15:18:57 -07:00
Brad Fitzpatrick b350b565c7 Copy the clip-it-good js libraries to the UI static files 2011-05-29 15:18:23 -07:00
Brad Fitzpatrick f9b879d3bf Add schema.WriteFileFromReader and use it in UI upload helper 2011-05-29 10:50:17 -07:00
Brad Fitzpatrick 4317da0308 camlistored: convert ui, root, jsonsign to use handler registry 2011-05-26 07:34:39 -07:00
Brad Fitzpatrick dc06095a96 camlistored: start of temp upload helper handler 2011-05-25 21:56:48 -07:00
Brad Fitzpatrick ccf33926c8 Replica blob handler for live replication. 2011-05-22 21:22:21 -07:00
Brad Fitzpatrick 5b1657a2d4 Make blob storage constructors take a blobserver.Loader 2011-05-21 13:40:17 -07:00
Brad Fitzpatrick 1c83320706 cleaner 2011-05-21 12:07:49 -07:00
Brad Fitzpatrick 621d3e2cc9 Start of 'shard' handler. 2011-05-21 09:26:20 -07:00
Brad Fitzpatrick ca19b8ddaa jsonsign: use Go's openpgp library; don't shell out to gpg 2011-05-16 09:01:35 -07:00
Brad Fitzpatrick a92d5e96ec Update for Go public key serialization change:
http://code.google.com/p/go/source/detail?r=920f1bc872eed92199065a2a1dcd95bf134b96e9
2011-05-14 16:58:55 -07:00
Brad Fitzpatrick 475561d74c Remove old partition interface. 2011-05-12 19:17:59 -07:00
Brad Fitzpatrick 053eb73b3d sync: more stats, better goroutine/chan design 2011-05-11 08:49:17 -07:00
Brad Fitzpatrick 408710a4e7 Concurrent sync copies now, and fancy stats page. 2011-05-11 08:29:04 -07:00
Brad Fitzpatrick 2d4daaa3bb real-time replication built-in to camlistored works now. 2011-05-11 07:07:31 -07:00
Brad Fitzpatrick d43263035a client: allow UploadHandle.Size to be -1, and associated cleanup, including:
-- new StorageConfiger interface & use it in camlistored.
-- bunch of little bug fixes and TODOs done.
2011-05-10 14:55:12 -07:00
Brad Fitzpatrick 494edc82bc Make camlistored configuration load dependencies as needed
Before it was just 2 passes, statically configured, and was fragile. Now
it faults things in as needed and has much better error messages and stricter
checking everywhere.
2011-05-09 14:20:19 -07:00
Brad Fitzpatrick 7ef1f52fc2 remove camlistored command-line configuration mode 2011-05-09 12:07:56 -07:00
Brad Fitzpatrick 17a804b7c1 Move TLS setup to config file, not flags. Use jsonconfig for root config. 2011-05-09 11:49:02 -07:00
Brad Fitzpatrick 1b7aceac3f Automatic blobserver queue creation from sync Handler. 2011-05-09 11:08:14 -07:00
Brad Fitzpatrick bed26de507 Cleanup: remove partitions from interfaces. WIP but compiles.
Still need to fix up blobhub notification for localdisk
mirroring, since now localdisk can't find the notification
hub for mirrored partitions.  (and also can't be configured
yet)
2011-05-09 09:11:18 -07:00
Brad Fitzpatrick 226981a5c9 tell sync handler the prefix names 2011-05-09 06:08:04 -07:00
Brad Fitzpatrick bbad19c3a6 Start of putting auto-sync into camlistored. 2011-05-09 06:05:58 -07:00
Brad Fitzpatrick b68e0184b1 in verify reply, include SignerKeyId 2011-05-06 05:37:17 -07:00
Brad Fitzpatrick 1f6bee57c7 wire up verification handler to web UI 2011-05-05 21:45:24 -07:00
Brad Fitzpatrick 6d0639054d woot, signing handler hooked up to web UI now. 2011-05-05 21:21:30 -07:00
Brad Fitzpatrick 71f1646fdf more UI js/html work, for signatures. 2011-05-05 18:27:19 -07:00
Brad Fitzpatrick 1a14a121d0 improve jsonsign discovery handler 2011-05-05 17:15:32 -07:00
Brad Fitzpatrick 962d65877d some sig discovery work 2011-05-05 16:41:00 -07:00
Brad Fitzpatrick 73a7329401 blobref memory store 2011-05-05 16:31:19 -07:00
Brad Fitzpatrick 6071130723 move some camsigd stuff over to camlistored. 2011-05-03 17:45:35 -07:00
Brad Fitzpatrick ce16f66588 sig handler: find key / export to armor on start 2011-05-03 07:26:42 -07:00
Brad Fitzpatrick 0a29a45a42 jsonsign handler / config work. 2011-05-01 21:37:01 -07:00
Brad Fitzpatrick 0ccf46e561 start writing up jsonsign handler to camlistored. 2011-05-01 21:23:31 -07:00
Brad Fitzpatrick 36989b6dcf Add dev-server helper script to run a full dev config. 2011-05-01 18:36:11 -07:00
Brad Fitzpatrick 12b8190828 jsonconfig expansion support; start making dev-* helper scripts use config files 2011-05-01 16:10:53 -07:00
Brad Fitzpatrick 0be615f6ee start of wiring up jsonsign helper to UI + JSONP config option 2011-04-17 16:01:41 -07:00
Brad Fitzpatrick 82c88af49d start of javascript search 2011-04-16 16:26:59 -07:00
Brad Fitzpatrick 6601225738 camlistored Javascript discovery 2011-04-16 16:18:31 -07:00
Brad Fitzpatrick aadf3dbf82 camlistored: root and ui handlers, start of UI shell 2011-04-16 15:44:22 -07:00
Brad Fitzpatrick 3db60c316c camlistored: configuration + cleanup work
working on gutting partition stuff from everywhere,
and gutting the command-line mode that statically
mounted various dev handlers based on flags.

more stuff moves into the config file now
and jsonconfig is used in more places.
2011-04-15 22:25:45 -07:00
Brad Fitzpatrick a76551fe4f Highlight position of JSON parser errors. 2011-04-15 17:17:33 -07:00
Brad Fitzpatrick df73e53494 Amazon fetch support; misc refactorings
Blobservers only need a streaming fetcher now.
2011-04-08 23:20:24 -07:00
Brad Fitzpatrick c56f82c5dd Updates for Go Open changes. 2011-04-07 10:58:29 -07:00
Brad Fitzpatrick bcd7db4b7e fix extra slash in partition base URLs. 2011-04-03 19:58:20 -07:00
Brad Fitzpatrick 6c45e453c4 add password config option 2011-04-03 19:38:22 -07:00
Brad Fitzpatrick 59901467fd Server config file support. 2011-04-03 08:07:40 -07:00
Brad Fitzpatrick 675e9028a0 some cleanup of camlistored 2011-04-01 22:14:23 -07:00
Brad Fitzpatrick 63668853d9 Make s3 storage use registry; start trimming blobserver 2011-04-01 20:45:40 -07:00
Brad Fitzpatrick 07e97e72ac Start of configuration wizard stuff. 2011-04-01 12:48:43 -07:00
Brad Fitzpatrick 467ae0a9e0 Rename server/go/blobserver to server/go/camlistored
.. in prep for it getting more front-end stuff.  I'll make a smaller
server/go/blobserver binary later for people just wanting a
stand-alone blobserver.
2011-03-29 20:29:32 -07:00
Brad Fitzpatrick c9f36a83ec Fix copyright license. Not mine. 2011-03-29 17:42:49 -07:00
Brad Fitzpatrick 787576f396 Some binary names changed (match directories now) 2011-03-19 01:30:18 -07:00
Brad Fitzpatrick 184afbc2a3 Auto-generate Go Makefiles.
Dependencies are now only in one place (in source code, enforced for correctness by Go)
instead of three places.
2011-03-19 00:27:03 -07:00