Commit Graph

3578 Commits

Author SHA1 Message Date
Marcin Rataj
4fe6f4ce44 refactor: improved humanNumber and humanSI
This hides "(n)" when value is same as SI,
and makes SI "3k" (instead of "3 k")

(cherry picked from commit f40dc731e9)
2021-05-27 14:07:34 -07:00
Marcin Rataj
229dfa6755 feat: humanized durations in stat provide
(cherry picked from commit e5ac70456d)
2021-05-27 14:07:34 -07:00
Marcin Rataj
bd46b0bbe6 feat: humanized numbers in stat provide
https://github.com/ipfs/go-ipfs/pull/8154#discussion_r639231040
(cherry picked from commit c082c73135)
2021-05-27 14:07:34 -07:00
Adin Schmahmann
0902ab1be5 feat: add a text output encoding for the stats provide command
(cherry picked from commit 37de3d0586)
2021-05-27 14:07:34 -07:00
Marcin Rataj
73e3559287 fix: webui-2.12.3
This bumps webui to bugfix release based on feedback from 0.9.0-rc1:
https://github.com/ipfs/ipfs-webui/releases/tag/v2.12.3

(cherry picked from commit 2c431eb825)
2021-05-27 14:07:34 -07:00
Adin Schmahmann
cf45f1a862 added support for an experimental batched provider system
The batched provider system is enabled when the experimental AcceleratedDHTClient is enabled

There is also an `ipfs stats provide` command which gives stats about the providing/reproviding system when the batched provider system is enabled
2021-05-14 01:47:48 -07:00
Adin Schmahmann
2fd55d198c integrate experimental AcceleratedDHTClient
The experimental AcceleratedDHTClient can be enabled from the config

When enabled it modifies the output of the `ipfs stats dht` command.
2021-05-14 04:31:06 -04:00
Marcin Rataj
28d4d9b327 refactor: add isDomainNameAndNotPeerID
This ensures we exclude valid PeerIDs from code paths that require
DNSLink names.

Ref.
https://github.com/ipfs/go-ipfs/pull/8071#pullrequestreview-639409245
2021-05-13 10:54:40 -04:00
divingpetrel
24dd662d38 feat support non-ICANN DNS 2021-05-13 10:54:38 -04:00
Marten Seemann
473d7d5851 update quic-go to v0.21.0-rc.1 2021-05-12 19:17:52 -04:00
Adin Schmahmann
56f61d5dbd
Merge pull request #8128 from ipfs/chore/update-deps
chore: update deps
2021-05-12 15:37:08 -07:00
Adin Schmahmann
3f7e23e640 chore: update deps 2021-05-12 16:58:35 -04:00
Adin Schmahmann
c82485505f
Merge pull request #8113 from ipfs/feat/key-export-online
feat: allow key export in online mode
2021-05-12 11:46:35 -07:00
Marcin Rataj
1d77f9d33d
refactor: key export requires exact repo ver 2021-05-11 20:11:12 +02:00
Marcin Rataj
6b63de8a5a
fix: check repo version before key export
https://github.com/ipfs/go-ipfs/pull/8113#discussion_r628314443
2021-05-11 19:43:51 +02:00
vyzo
664c66c3f3 undo dns neutering from offline mode 2021-05-10 21:04:57 -07:00
vyzo
eb7456d38f update for the new namesys api 2021-05-10 21:04:57 -07:00
vyzo
0b4037c7cd allow overriding implicit defaults with the default resolver
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2021-05-10 21:04:57 -07:00
vyzo
77d6a08598 better handling of implicit defaults, reuse resolver object for the same URL 2021-05-10 21:04:57 -07:00
vyzo
b8eb1bbd5b the dot is not really an FQDN 2021-05-10 21:04:57 -07:00
vyzo
531e9c137d use NilDNSResolver for offline operation 2021-05-10 21:04:57 -07:00
vyzo
0ef2f8c9ea update resolver config parsing, add eth. resolver by default 2021-05-10 21:04:57 -07:00
vyzo
b6a1ba9617 create custom resolvers from config 2021-05-10 21:04:57 -07:00
vyzo
543c5da34a explicit construction of DNS resolver 2021-05-10 21:03:27 -07:00
Marcin Rataj
a158036dee
feat: allow key export in online mode
Export does not require repo lock and it is safe to do even when ipfs
daemon is running. This enables apps like Brave browser to do
import/export without stopping/starting daemon.

Ref. https://github.com/brave/brave-browser/issues/15422
2021-05-07 16:26:23 +02:00
Adin Schmahmann
b8de0e8ad2
Merge pull request #8111 from ipfs/dag-export-is-read-only
feat(gw): expose /api/v0/dag/export on gateway port
2021-05-05 14:21:52 -07:00
Steven Allen
71761a6529
Merge pull request #8097 from ipfs/chore/update-webui
chore: update webui to 2.12.2
2021-05-05 14:17:43 -07:00
Marcin Rataj
7406b83990
test: dag export in TestROCommands on gateway 2021-05-05 22:32:28 +02:00
Oli Evans
0f1e5be1be
feat: expose dag/export on read-only gateway api
- add dag/export to read-only root. it's ready only, so why the heck not!
- test that i didn't expose other dag subcommands
§

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2021-05-05 15:32:26 +01:00
Marcin Rataj
a9868105f0
feat: ipfs-webui v2.12.2
https://github.com/ipfs/ipfs-webui/releases/tag/v2.12.2
2021-04-30 16:12:21 +02:00
Steven Allen
cd72589cfd
Merge pull request #8098 from ipfs/docs/deprecate-object-cmds
docs: deprecate object commands
2021-04-29 20:25:52 -07:00
Marcin Rataj
8c1e4e99d1
docs: deprecate object commands
Part of https://github.com/ipfs/go-ipfs/issues/7936

This PR makes it very explicit that 'ipfs object' are deprecated
by removing examples and pointing at modern replacements under
'ipfs dag' and 'ipfs files'

Taglines are longer and include alternatives because we use them on:
https://docs.ipfs.io/reference/http/api/
2021-04-30 01:27:43 +02:00
Steven Allen
c1a0eb567a
Merge pull request #8023 from ipfs/fix/pins-null
fix: omit empty pins slice when reporting pin progress
2021-04-28 11:28:30 -07:00
Steven Allen
a006ded010 chore: update webui to 2.12.1 2021-04-28 11:00:45 -07:00
Luflosi
b3f054f450
Fix typo in comment 2021-04-22 20:30:41 +02:00
Steven Allen
fb4542b9c8
Merge pull request #8069 from ipfs/fix/remove-hardcoded-hostnames
fix(gw): remove hardcoded hostnames
2021-04-13 15:24:00 -07:00
Marcin Rataj
9f8964e6f9
fix(gw): remove hardcoded hostnames
This closes #7317 by removing hardcoded PL hostnames from default
config, making the localhost the only implicit gateway hostname.
2021-04-12 18:03:44 +02:00
Steven Allen
c4b6366536 fix: update root help
* move the `cid` command to the "datastructures" section.
* document bitswap & pubsub commands

fixes #8047
2021-04-05 16:31:40 -07:00
gammazero
8eefcce4a1 Add info to "pin rm" help about how to tell if a pin is indirectly pinned.
Addresses issue #7440
2021-04-01 18:33:18 -07:00
Steven Allen
4cdb67f37d
Merge pull request #7890 from ipfs/fix/remove-clear-site-data
fix(gw): remove use of Clear-Site-Data in subdomain router
2021-03-31 16:24:24 -07:00
Steven Allen
cc54ba1109
Merge pull request #8010 from ipfs/docs/cosmetic-fixes
docs: cosmetic fixes of help text
2021-03-30 15:52:38 -07:00
Steven Allen
0a3f88823c
Merge pull request #7994 from ipfs/chore/deprecate-pathprefixes
chore: deprecate Gateway.PathPrefixes
2021-03-30 15:52:02 -07:00
Marcin Rataj
090953d298
docs: tweak ipfs cmd help
https://github.com/ipfs/go-ipfs/pull/8010#discussion_r600842235
https://github.com/ipfs/go-ipfs/pull/8010#discussion_r600842123
2021-03-30 21:26:32 +02:00
Marcin Rataj
2f105f79b9
chore: deprecate Gateway.PathPrefixes
Context:
https://github.com/ipfs/go-ipfs/issues/7702#issuecomment-803136077
2021-03-30 21:17:41 +02:00
Steven Allen
99309df9e1
Merge pull request #7883 from ipfs/chore/pin-ls-all-faster
Do not fetch recursive pins from pinner unnecessarily
2021-03-29 16:04:37 -07:00
gammazero
fb55f09882 Add comment about reading until channel closed 2021-03-29 15:11:38 -07:00
Steven Allen
efa55e02a5 fix: omit empty pins slice when reporting pin progress
Otherwise, we get messages of the form `{Pins: null, Progress: 100}`.
After this change, we'll get `{Progress: 100}`.
2021-03-24 20:29:11 -07:00
Adin Schmahmann
e5147d6f5a
Merge pull request #7973 from ipfs/fix/7957
fix: return an error if repo verify is canceled
2021-03-24 15:30:19 -07:00
Steven Allen
d30f1e5d44
Merge pull request #7930 from ipfs/fix/redundant-ns-on-gateway
feat(gw): /ipfs/ipfs/{cid} → /ipfs/{cid}
2021-03-24 13:12:16 -07:00
Marcin Rataj
f91411362b
docs: ipfs object only works with dag-pb
Closes #7396
2021-03-24 20:49:50 +01:00