Commit Graph

2103 Commits

Author SHA1 Message Date
Hector Sanjuan
8af2d53881 Punctuation 2020-04-27 20:10:14 +02:00
Hector Sanjuan
db4a6368cd Update templates etc. 2020-04-27 19:48:31 +02:00
Hector Sanjuan
76d0d27ce3 Add standard issue template 2020-04-27 11:26:26 +02:00
Hector Sanjuan
6c741eeeed
Merge pull request #1093 from ipfs/feat/fix-protocol-version
Set the RPC Protocol Version to a fixed value
2020-04-26 14:49:30 +02:00
Hector Sanjuan
c31571407e Set the RPC Protocol Version to a fixed value
The RPC endpoints no longer change much, but every minor release enforces that
all peers in a Cluster must run on the same version.

This was meant to allow greater flexibility when upgrading the RPC
endpoints. Now we should not be in a situation that releasing a minor cluster
version causes peers incompatibilities, even though nothing changes on the RPC
side of things.

Therefore we make 0.12 the RPC protocol version going forward and detach it
from the actual cluster version from this point.
2020-04-23 19:08:11 +02:00
Hector Sanjuan
964188be0a
Merge pull request #1083 from ipfs/fix/1009-pin-direct
Fix #1009: support pinning in direct mode
2020-04-23 19:00:15 +02:00
Hector Sanjuan
fe4a5b32f4 tests: improve TestClustersPinDirect mode
Check that a recursive pin cannot be repinned as direct
2020-04-23 18:28:16 +02:00
Hector Sanjuan
84eddf4ac8 Direct pins: fix add tests for direct pinning 2020-04-23 18:05:05 +02:00
Hector Sanjuan
75cc2e5be1 Add sharness test for direct pinning 2020-04-23 17:31:52 +02:00
Hector Sanjuan
37b2cc34aa
Merge pull request #1091 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-kad-dht-0.7.7
build(deps): bump github.com/libp2p/go-libp2p-kad-dht from 0.7.5 to 0.7.7
2020-04-23 12:55:36 +02:00
Hector Sanjuan
a92ca83580
Merge pull request #1092 from ipfs/dependabot/go_modules/github.com/ipfs/go-merkledag-0.3.2
build(deps): bump github.com/ipfs/go-merkledag from 0.3.1 to 0.3.2
2020-04-23 12:55:28 +02:00
dependabot-preview[bot]
1ff9787641
build(deps): bump github.com/libp2p/go-libp2p-kad-dht
Bumps [github.com/libp2p/go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht) from 0.7.5 to 0.7.7.
- [Release notes](https://github.com/libp2p/go-libp2p-kad-dht/releases)
- [Commits](https://github.com/libp2p/go-libp2p-kad-dht/compare/v0.7.5...v0.7.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-23 10:14:19 +00:00
dependabot-preview[bot]
10fbd3beae
build(deps): bump github.com/ipfs/go-merkledag from 0.3.1 to 0.3.2
Bumps [github.com/ipfs/go-merkledag](https://github.com/ipfs/go-merkledag) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/ipfs/go-merkledag/releases)
- [Commits](https://github.com/ipfs/go-merkledag/compare/v0.3.1...v0.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-23 10:14:11 +00:00
Hector Sanjuan
3324663d68
Merge pull request #1090 from ipfs/dependabot/go_modules/github.com/hsanjuan/ipfs-lite-1.1.10
build(deps): bump github.com/hsanjuan/ipfs-lite from 1.1.8 to 1.1.10
2020-04-23 12:05:12 +02:00
Hector Sanjuan
61ea6a3f7c
Merge pull request #1089 from ipfs/dependabot/go_modules/github.com/libp2p/go-ws-transport-0.3.1
build(deps): bump github.com/libp2p/go-ws-transport from 0.3.0 to 0.3.1
2020-04-23 12:04:50 +02:00
Hector Sanjuan
0c38a6f5fd
Merge pull request #1088 from ipfs/dependabot/go_modules/github.com/ipfs/go-log/v2-2.0.5
build(deps): bump github.com/ipfs/go-log/v2 from 2.0.4 to 2.0.5
2020-04-23 12:04:37 +02:00
dependabot-preview[bot]
721ddac6f2
build(deps): bump github.com/hsanjuan/ipfs-lite from 1.1.8 to 1.1.10
Bumps [github.com/hsanjuan/ipfs-lite](https://github.com/hsanjuan/ipfs-lite) from 1.1.8 to 1.1.10.
- [Release notes](https://github.com/hsanjuan/ipfs-lite/releases)
- [Commits](https://github.com/hsanjuan/ipfs-lite/compare/v1.1.8...v1.1.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-23 09:49:17 +00:00
dependabot-preview[bot]
7252bd4d20
build(deps): bump github.com/libp2p/go-ws-transport from 0.3.0 to 0.3.1
Bumps [github.com/libp2p/go-ws-transport](https://github.com/libp2p/go-ws-transport) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/libp2p/go-ws-transport/releases)
- [Commits](https://github.com/libp2p/go-ws-transport/compare/v0.3.0...v0.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-23 09:48:39 +00:00
dependabot-preview[bot]
10c6ea3115
build(deps): bump github.com/ipfs/go-log/v2 from 2.0.4 to 2.0.5
Bumps [github.com/ipfs/go-log/v2](https://github.com/ipfs/go-log) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/ipfs/go-log/releases)
- [Commits](https://github.com/ipfs/go-log/compare/v2.0.4...v2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-22 11:30:37 +00:00
Hector Sanjuan
1499107835 Cluster: update docstring for setupPin() 2020-04-21 22:59:35 +02:00
Hector Sanjuan
2a2ca2ce46 Sharding: dag service: force pin mode to Recursive
This is just a safeguard.
2020-04-21 22:59:14 +02:00
Hector Sanjuan
fa762d78cf Improve PinLsCid to check for pinned items
Receive the full pin object so that it can decide whether to check
for recursive or direct pins directly.

Additionally, unpin will not check for the pin presence anymore and
simply trigger unpins (ignoring errors)
2020-04-21 17:23:55 +02:00
Hector Sanjuan
99eb29a7d6 cluster: do not allow to repin recursive pins as something else.
i.e. a direct pin can be repinned as recursive, but a recursive
pin cannot be pinned as direct (this fails in IPFS too).

Additionally, save a couple of calls to the datastore by obtaining the
existing pin only once.
2020-04-21 17:23:55 +02:00
Hector Sanjuan
ddea1a995c Adder: make sure we always pin recursively after adding
Regardless of the Mode option.
2020-04-21 17:23:55 +02:00
Hector Sanjuan
edd91f35ae Types: make MaxDepth a PinDepth type and add helpers to convert to Mode 2020-04-21 17:23:55 +02:00
Hector Sanjuan
6c60097421 ipfsproxy: support direct pin mode 2020-04-21 17:23:55 +02:00
Hector Sanjuan
68db5027e1 Fix #1009: Add Mode={direct,recursive} PinOption
This adds a new pin option: Mode that can be set to "direct" or "recursive".

The Mode is used to set the MaxDepth Pin field accordingly. When set to 0, we
will call pin/add using the type=direct.
2020-04-21 17:23:55 +02:00
Hector Sanjuan
c55669cfb9
Merge pull request #1084 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-kad-dht-0.7.5
build(deps): bump github.com/libp2p/go-libp2p-kad-dht from 0.7.4 to 0.7.5
2020-04-21 17:20:30 +02:00
dependabot-preview[bot]
221bd3f156
build(deps): bump github.com/libp2p/go-libp2p-kad-dht
Bumps [github.com/libp2p/go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/libp2p/go-libp2p-kad-dht/releases)
- [Commits](https://github.com/libp2p/go-libp2p-kad-dht/compare/v0.7.4...v0.7.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 11:35:42 +00:00
Hector Sanjuan
c47843c853
Merge pull request #1081 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-quic-transport-0.3.4
build(deps): bump github.com/libp2p/go-libp2p-quic-transport from 0.3.3 to 0.3.4
2020-04-20 09:40:55 +02:00
dependabot-preview[bot]
4f7d7e6d84
build(deps): bump github.com/libp2p/go-libp2p-quic-transport
Bumps [github.com/libp2p/go-libp2p-quic-transport](https://github.com/libp2p/go-libp2p-quic-transport) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/libp2p/go-libp2p-quic-transport/releases)
- [Commits](https://github.com/libp2p/go-libp2p-quic-transport/compare/v0.3.3...v0.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 07:21:50 +00:00
Hector Sanjuan
fdf3dd1f4a
Merge pull request #1080 from ipfs/dependabot/go_modules/github.com/hsanjuan/ipfs-lite-1.1.8
build(deps): bump github.com/hsanjuan/ipfs-lite from 1.1.7 to 1.1.8
2020-04-20 09:12:53 +02:00
Hector Sanjuan
94cc3188d4
Merge pull request #1079 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-kad-dht-0.7.4
build(deps): bump github.com/libp2p/go-libp2p-kad-dht from 0.7.3 to 0.7.4
2020-04-20 09:12:30 +02:00
Hector Sanjuan
cba3e9fae1 api/pb: declare enum before fields for clarity 2020-04-17 13:05:50 +02:00
dependabot-preview[bot]
5045f9fc29
build(deps): bump github.com/hsanjuan/ipfs-lite from 1.1.7 to 1.1.8
Bumps [github.com/hsanjuan/ipfs-lite](https://github.com/hsanjuan/ipfs-lite) from 1.1.7 to 1.1.8.
- [Release notes](https://github.com/hsanjuan/ipfs-lite/releases)
- [Commits](https://github.com/hsanjuan/ipfs-lite/compare/v1.1.7...v1.1.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-16 11:35:41 +00:00
dependabot-preview[bot]
015686ff8b
build(deps): bump github.com/libp2p/go-libp2p-kad-dht
Bumps [github.com/libp2p/go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/libp2p/go-libp2p-kad-dht/releases)
- [Commits](https://github.com/libp2p/go-libp2p-kad-dht/compare/v0.7.3...v0.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-16 11:35:01 +00:00
Hector Sanjuan
ee0d4481ca
Merge pull request #1078 from ipfs/fix/expire-at-check
Tests: improve explicitness of expiry time update check
2020-04-16 11:48:55 +02:00
Hector Sanjuan
74110b9b96 Tests: improve explicitness of expiry time update check 2020-04-16 11:02:33 +02:00
Hector Sanjuan
a6d8e00d20
Merge pull request #1065 from gargdeepak/fix/cluster/pinupdate
Fixes #996 pin expiry is updated if set in options
2020-04-16 10:55:18 +02:00
Hector Sanjuan
05c7efb6bb
Merge pull request #1077 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-0.8.0
build(deps): bump github.com/libp2p/go-libp2p from 0.7.4 to 0.8.0
2020-04-16 10:53:08 +02:00
Hector Sanjuan
596426b94b
Merge pull request #1076 from ipfs/dependabot/go_modules/github.com/ipfs/go-ipfs-config-0.5.2
build(deps): bump github.com/ipfs/go-ipfs-config from 0.4.2 to 0.5.2
2020-04-16 10:52:47 +02:00
dependabot-preview[bot]
2d2a75982b
build(deps): bump github.com/libp2p/go-libp2p from 0.7.4 to 0.8.0
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p) from 0.7.4 to 0.8.0.
- [Release notes](https://github.com/libp2p/go-libp2p/releases)
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/NEWS.md)
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.7.4...v0.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-15 11:34:13 +00:00
dependabot-preview[bot]
35c7feee9b
build(deps): bump github.com/ipfs/go-ipfs-config from 0.4.2 to 0.5.2
Bumps [github.com/ipfs/go-ipfs-config](https://github.com/ipfs/go-ipfs-config) from 0.4.2 to 0.5.2.
- [Release notes](https://github.com/ipfs/go-ipfs-config/releases)
- [Commits](https://github.com/ipfs/go-ipfs-config/compare/v0.4.2...v0.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-15 11:33:35 +00:00
Hector Sanjuan
5d2ff3402e
Merge pull request #1075 from ipfs/fix/report-card
Fix some warnings from Go-report-card
2020-04-15 00:03:55 +02:00
Hector Sanjuan
b513ec194d Fix some mispellings 2020-04-14 23:47:09 +02:00
Hector Sanjuan
717ed85823 gofmt -s fixes 2020-04-14 23:44:18 +02:00
Hector Sanjuan
f8c0f942ea
Merge pull request #1074 from ipfs/feat/double-dht
Feat: upgrade to dual DHT
2020-04-14 23:37:41 +02:00
Hector Sanjuan
7ffd18e41b Feat: upgrade to dual DHT 2020-04-14 22:03:24 +02:00
Hector Sanjuan
d2011b3e67
Merge pull request #1073 from ipfs/deps/update-protobufs
Update to newest golang protobuf
2020-04-14 21:47:49 +02:00
deepakgarg
bf9a089ae3 Fixes #996 Rounding expiry time to 2s in TestClusterPingUpdate test 2020-04-14 12:45:34 -07:00