Commit Graph

1534 Commits

Author SHA1 Message Date
Kishan Sagathiya
2cd4420ee8 Issue #446 Adding peername to PinInfo
Fixing errors and better code placement

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:20:37 +05:30
Kishan Sagathiya
61c03e2160 Issue #446 Adding peername to PinInfo
Formatted output

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:04:16 +05:30
Kishan Sagathiya
b76b65e446 Issue #446 Adding peername to PinInfo
Removed unnecessary peername assignment
Modified tests according to the changes made to add peername to PinInfo

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:04:16 +05:30
Kishan Sagathiya
773b4de1f0 Issue #446 Adding peername to PinInfo
Removed comments and code used for debugging

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:04:16 +05:30
Kishan Sagathiya
ef85ba8780 Issue #446 Adding peername to PinInfo
This commit adds peername to PinInfo and GlobalPinInfo so that we have
a nicer and more meaningfull output for `ipfs-cluster-ctl` queries like
`status`, `sync` and `recover`

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:04:16 +05:30
Kishan Sagathiya
ff48fb319a Issue #446 Adding peername to PinInfo
This commit adds peername to PinInfo and GlobalPinInfo so that we have
a nicer and more meaningfull output for queries like
`ipfs-cluster-ctl status`

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-24 23:04:16 +05:30
Hector Sanjuan
275a8b2881
Merge pull request #544 from ipfs/fix/update-go-cid
update go-cid and go-libp2p
2018-09-24 13:54:30 +02:00
Hector Sanjuan
e751fbe25e
Merge pull request #529 from ipfs/feat/docker-gx-make
speed up building docker image
2018-09-24 13:51:26 +02:00
Hector Sanjuan
0bf9f4d2c0
Merge pull request #542 from kishansagathiya/issue_536
Issue #536 New make target for PR check
2018-09-24 13:48:41 +02:00
Adrian Lanzafame
31474f6490
update go-cid and go-libp2p
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-09-24 11:35:38 +10:00
Kishan Sagathiya
cd7c803772 Issue #536 New make target for PR check
A test target should not modify the running system. Safest to run
without test_sharness. Thus avoiding to install.

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-21 23:38:02 +05:30
Kishan Sagathiya
a6111908e9 Issue #539 Make make all update dependencies
`make all` assumes that your dependencies are re-written. This can lead
to unexpected failures/errors.
This commit changes `make all` to update dependencies as well.

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-21 23:37:42 +05:30
Kishan Sagathiya
69a11a8703 Issue #536 New make target for PR check
Fixes typo

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-20 07:31:27 +05:30
Kishan Sagathiya
20bd25399c Issue #536 New make target for PR check
This commit adds a single make target that can run and check if I am
ready to push my PR, i.e, `make prcheck`

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-09-19 10:05:43 +05:30
Hector Sanjuan
e4c5dc889d
Merge pull request #537 from ipfs/fix/update-go-dot
gx update go-dot
2018-09-13 11:34:54 +02:00
Adrian Lanzafame
a34154ff25
gx update go-dot
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-09-13 13:29:34 +10:00
Adrian Lanzafame
88f08e86b0
speed up building docker image
By using gx install --local, deps are copied into
the build context and therefore only stale deps
will get pulled from the network on image build.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-09-07 12:35:32 +10:00
Hector Sanjuan
753322cdc1
gx publish 0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:04:17 +02:00
Hector Sanjuan
2f417eb632
Release 0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:03:22 +02:00
Hector Sanjuan
a78a0bd940
Merge pull request #510 from ipfs/0.5.0/changelog
Changelog for v0.5.0
2018-08-24 15:01:32 +02:00
Hector Sanjuan
2655bf47d2 Changelog for v0.5.0
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-24 15:00:28 +02:00
Hector Sanjuan
2d072d8b53
Merge pull request #519 from ipfs/godocs
Add/improve godoc descriptions for some modules.
2018-08-23 17:19:41 +02:00
Hector Sanjuan
0c5de3a849 Add/improve godoc descriptions for some modules.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-23 14:14:06 +02:00
Hector Sanjuan
b9485626d1
Merge pull request #517 from ipfs/update/gx-versions
Gx-go 1.8.0 it's WAY faster.
2018-08-23 10:18:03 +02:00
Hector Sanjuan
0764409a0a
Merge pull request #518 from ipfs/fix/status-output
Small adjustment to "pin ls" human output in ctl.
2018-08-23 10:17:51 +02:00
Hector Sanjuan
5c4ebe7554 Small adjustment to "pin ls" human output in ctl.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-22 13:06:10 +02:00
Hector Sanjuan
cc1af87243 Gx-go 1.8.0 it's WAY faster.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-22 12:03:40 +02:00
Hector Sanjuan
2559655c81
gx publish 0.5.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:51:49 +02:00
Hector Sanjuan
fa2ba13ae2
Release 0.5.0-rc1
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:50:59 +02:00
Hector Sanjuan
d6e516b84a
Merge pull request #513 from ipfs/remove-go-ipfs-dep
AddParams: support "cid-version" and "hash" function.
2018-08-21 20:49:02 +02:00
Hector Sanjuan
0b60e330a3 Fix duplicate dep
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 20:06:12 +02:00
Hector Sanjuan
b266ff2fbf
Merge pull request #514 from ipfs/fix/466-proxy-repo-stat
Fix #466: Hijack repo/stat in the proxy and return aggregates from the cluster
2018-08-21 19:39:03 +02:00
Hector Sanjuan
05102c13a0 AddParams: support "cid-version" and "hash" function.
Additionally, remove dependency to go-ipfs after extraction from
"go-mfs".

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 19:38:41 +02:00
Hector Sanjuan
f99c7933dd
Merge pull request #515 from ipfs/fix/webfile-gx
Use cmdkit WebFile.
2018-08-21 11:23:18 +02:00
Hector Sanjuan
9c3826fdc5 Use cmdkit WebFile.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-21 02:12:36 +02:00
Hector Sanjuan
2ffa3d80de Fix 466: Hijack repo/stat in the proxy and return aggregates from the cluster.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 20:43:27 +02:00
Hector Sanjuan
0b21a404e5
Merge pull request #511 from ipfs/fix/pin-ls-check
Fix PinLsCid and pins with maxdepth 0 after migration
2018-08-20 13:40:28 +02:00
Hector Sanjuan
d900ff8ff5
Merge pull request #509 from ipfs/feat/client-add
rest/client: Implement .Add(paths), which adds from local files and web files
2018-08-20 12:41:15 +02:00
Hector Sanjuan
2061029313 Fix hanging add in sharness.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 12:08:49 +02:00
Hector Sanjuan
6c28d6bf3e Fix PinLsCid and pins with maxdepth 0 after migration
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 11:39:34 +02:00
Hector Sanjuan
b6182e0621 rest/client: Implement .Add(paths), which adds from local files and web files
.Add(paths) will interpret http* paths as WebFiles. These are read performing
a GET request to the location. Otherwise, the path is interpreted as a local
disk file/folder, and read from disk. ipfs-cluster-ctl has been updated
accordingly.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-20 11:07:23 +02:00
Hector Sanjuan
63fa1ba213
Merge pull request #505 from ipfs/fix/495-proxy-add
Fix #495: Hijack proxy /add correctly. Disable keep-alives.
2018-08-20 10:29:20 +02:00
Hector Sanjuan
77df433c2d
Merge pull request #504 from ipfs/fix/pinls
IPFSPinLsCid should try to find pins in the direct pinset too.
2018-08-20 10:10:32 +02:00
Hector Sanjuan
8d3510e98a
Merge pull request #507 from ipfs/fix/fast-repo-stat
IPFSHttp: Add "size-only=true" flag to repo/stat calls
2018-08-20 10:10:05 +02:00
Hector Sanjuan
2f59eaf966
Merge pull request #503 from ipfs/fix/sharding-state-upgrade
State migrations for sharding
2018-08-20 10:09:49 +02:00
Hector Sanjuan
5d991d651b
Merge pull request #508 from ipfs/feat/fix-testclusterspeerrejoin
Fix: TestClustersPeerRejoin was failing a lot since DHT feature.
2018-08-20 10:09:34 +02:00
Hector Sanjuan
be651da0d0 Fix: disable KeepAlives in server
See discussion in https://github.com/ipfs/go-ipfs/issues/5168

We cannot stream responses with keep-alives enabled.

I prefer this to not be a client feature, as otherwise users might end up
shooting themselves in the foot.

Note, the price is a corrupted request body which gets added
normally and gives wrong hashes!

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:36 +02:00
Hector Sanjuan
0709652d38 Run sharness tests verbose
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
ff8476e9b7 Fix: TestClustersPeerRejoin was failing a lot since DHT feature.
This uses Join rather than PeerAdd. Join ensures a DHT bootstrap
after successfully joining.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00
Hector Sanjuan
00a757fc0b Proxy/add: flush AddedOutput
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-08-18 02:48:35 +02:00