Commit Graph

9 Commits (16981f0484cbb2562aa2501346355b7cbe380f3d)

Author SHA1 Message Date
Jason Stirnaman b100bbf256
Fix/api securityschemes (#3488)
* fix: oss and cloud auth. Add bearer scheme for OSS.

* chore: Add an openapi CLI decorator that replaces INFLUXDB_DOCS_URL 'shortcodes' with the correct URL in specs.

* fix: API authentication descriptions and schemes in /api/v2 and V1Compat. Remove QueryString and Basic auth schemes from /api/v2 and add them to V1Compat, along with Token auth. Hook up the replace-docs-url-shortcode which is primarily for V1Compat for now due to the way that contract is managed. Add tag groups to V1Compat.

* fix: add v1compat Info description. Comment out Bearer auth in OSS until it's available in Cloud.

* fix: add replace-shortcodes decorator. Fix v1-compat tag-groups. Fix spec titles.

* fix: restore BasicAuth scheme definition for the users operations that reference them. Still need examples for these.

* fix: remove 1.x BasicAuth references where they don't belong.

* chore: sync from openapi master.

* fix: use replace-shortcodes to replace full Docs URLs in the contracts with absolute local paths to avoid roundtrips. Improve v1compat titles.

* Update api-docs/cloud/swaggerV1Compat.yml

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update api-docs/cloud/swaggerV1Compat.yml

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update api-docs/cloud/swaggerV1Compat.yml

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update api-docs/cloud/swaggerV1Compat.yml

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update api-docs/cloud/swaggerV1Compat.yml

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2021-12-21 14:34:49 -06:00
Jason Stirnaman 2bddffb52b
API Ref docs processing (#3337)
* chore: API Reference Docs custom processing. Pulls contracts/ref files and applies custom content (tags, x-tagGroups, securitySchemes, info) before writing results to cloud/ref.yml and v2.0/ref.yml.
Rename source files from swagger.yml to ref.yml to avoid confusion and in case we need to bundle additional specs in the future.
Add an OpenAPI CLI docs-plugin with content and decorators.

* chore: update api-docs/README.md

* fix: add strip-version-prefix to remove /api/v2 added incorrectly to some paths during contract generation - also fixed in openapi repo so future contracts won't need this decorator. Fix server urls. Cleanup.

* chore: update cloud contract.
2021-11-03 14:18:02 -05:00
Jason Stirnaman 6587ee1fdc
Document new API Invocable Scripts feature (was named-functions) (#3282)
* feat: add api-guides/guides and guides/api-invocable-scripts for the API-invocable scripts (managed functions) feature (##2547, #2233).

* feat: document API-invocable scripts. Add example for creating and invoking a script with POST. Unable to make GET work with query parameters.

* feat: moved API-invocable scripts under api-guide. Remove guides directory. Add docs for list and find. Add example for list. Add shortcuts and glossary links. Verified with team-compute that GET /invoke and python are not supported yet.

* feat: rename example function for simplicity since there's no GET for now.

* feat: add find_and_update example (#2547).

* feat: add update example. Clarify, expand invoke example. Add links. (#2547)

* Update content/influxdb/cloud/api-guide/api-invocable-scripts/_index.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* fix: remove accidental commit of generated redoc-static.html

* feat: manual update to cloud swagger. Merges meta, auth, tags, and x-tagGroups from src/cloud.yml to aggregate contracts/ref/cloud.yml.

* fix: replace /functions with /scripts

* feat: get swaggers from contracts/ref. Still requires copy-paste of info, tags, and auth from contracts/cloud.yml and contracts/oss.yml

* feat: invocable scripts (#2547)

* Update content/influxdb/cloud/api-guide/api-invocable-scripts/_index.md

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* feat: new section for params (#2547).

* fix: swagger server url (#2547)

* Update content/influxdb/cloud/api-guide/api-invocable-scripts/_index.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* feat: remove jq and function where there's no clear need.

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
2021-10-25 08:30:31 -05:00
Jason Stirnaman ef8c27716f
Api docs update (#2676)
* fix: negate check for verbose.

* fix: default version directory to latest version.

* update: API changes.

* update: API updated with grammar fixes
2021-06-07 17:04:33 -05:00
Jason Stirnaman c91cdd489d
improvement: allow named arguments for OSS version and base URL. (#2675)
* add -o ossVersion
* add -b baseUrl
* add -h help
* add -V verbose
2021-06-07 15:44:53 -05:00
Jason Stirnaman f13e34de6d
Install dependencies as project dependencies from NPM repo (#2476)
* Added hugo-extended, postcss, postcss-cli, and autoprefixer as devDependencies. Run npm install or yarn install. (#2474)

* Replaced global hugo and yarn installs with project-level yarn install.

* Replaced npm package.lock with yarn.lock (#2474).

* enhancement: update README with instructions for installing NODE.JS dependencies. (#2474)

* updated api doc generator script to use npx

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update package.json

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* fix: indentation. (#2476)

* update: Added separate dependencies list for api-docs.
- Moved redoc-cli to a separate package.json in api-docs. Excluded
api-docs/node_modules from generate-api-docs.sh.
- Updated redoc-cli argument sequence to agree with their docs.
- Updated READMEs.
- Fixed typos.

* update: add api-docs > yarn install to .circleci

* Added language and consistency to code block. Specify where to run the command.

Co-authored-by: Scott Anderson <scott@influxdata.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2021-05-24 12:11:01 -05:00
Scott Anderson 43d49365b2
Influxdb 2.0.6 (#2459)
* Re-add InfluxDB 2.0.5 (#2450)

This reverts commit c91442f88c.

* added release notes, updated 2.0.5 release notes

* updated download links for influxdb 2.0.6

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
2021-04-29 14:04:33 -06:00
Kelly c91442f88c Revert "InfluxDB 2.0.5 (#2450)"
This reverts commit 4de7de611e.
2021-04-28 11:17:54 -07:00
Scott Anderson 4de7de611e
InfluxDB 2.0.5 (#2450)
* Add `--compression` flag to `influx write` (#2243)

Add `--compression` flag to `influx write`

Closes #2240.

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Changes to /debug endpoints for InfluxDB 2.0.5 (#2246)

- Add --pprof-disabled influxd flag
- Add pprof-disabled to influxd config-options

Closes #2239.

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* deprecated influx transpile command, closes #2266

* Update content/influxdb/v2.0/reference/cli/influx/transpile/_index.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated influx transpile warning from deprecated to removed

* Deprecated 'influx transpile' command (#2304)

* deprecated influx transpile command, closes #2266

* Update content/influxdb/v2.0/reference/cli/influx/transpile/_index.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* added new and missing influxd config options, closes #2297, closes #2293 (#2303)

* Add 'influx task retry-failed' command (#2334)

* added influx task retry-failed command

* add new task retry-failed flags, updated task task-based content, closes #2095

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* address PR feedback for task retry-failed

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated task retry-failed to address PR feedback

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated task-based failed task docs in cloud

* add profilers flag to influx query, closes #2338, closes #2327 (#2342)

* export lp to stdout, closes #2337 (#2343)

* export lp to stdout, closes #2337

* adjust output-path desc, updated command examples

* Clarify user migration in 1.x to 2.0 automated upgrade process (#2344)

* clarify user migration in upgrade process, closes #2336

* updated user migration content to address PR feedback

* updated migration doc for PR feedback

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Updated restore docs (#2352)

* udpated restore docs, closes #2333, closes #2335

* Apply suggestions from code review

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* Apply suggestions from code review

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* describe full restore failure

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated restore doc to address PR feedback

Co-authored-by: Daniel Moran <danxmoran@gmail.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Shard management (#2322)

* shard reference content

* added shard group diagram

* finished reference info for shards

* add shard group duration config flag and examples, closes #2283

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Edd Robinson <me@edd.io>

* addressed PR feedback for shard docs

* more updates to shard docs to address PR feedback

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* minor updates to shards doc in 2.0

* updated shard state content

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update content/influxdb/v2.0/reference/internals/shards.md

* updated shard group definition in glossary

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Edd Robinson <me@edd.io>

* removed unnecessary period from influx transpile

* Upgrade from OSS 2.x to Cloud (#2420)

* WIP v2 to cloud migration

* updated config create example in grafana doc, resolves #2415

* draft for v2 to cloud migration

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* minor update to cloud upgrade doc

* updated v2 to cloud upgrade guide to address PR feedback

* updated 1x compatability api docs for cloud

* updated write examples in cloud upgrade, added intro sentence to cloud upgrade landing

* Add file system layout reference doc (#2423)

* add file system layout reference doc, closes #2276

* added filesystem-diagram shortcode to contributing

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* updates to filesystem layout doc

* minor update to filesystem layout doc

* fixed typo in v2 to cloud migration

* added newline to filesystem diagram shortcode

* minor updates to fs layout doc

* added windows file system layout

* updated fs layout doc to address PR feedback

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* updates to address PR feedback

* Upgrade from 1.x to Cloud (#2424)

* add v1 to cloud upgrade guide with migrate CQs doc

* Apply suggestions from code review

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* udpated PATH verbiage in v1 to cloud migration doc

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* added caption shortcode, address PR feedback for v1 to cloud migration

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* replaced arbitrary username in cloud v1 compat api doc

* renamed v2 to upgrade doc

* removed old from-v2 cloud migration doc

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>

* moved diagram css

* minor update to heading in fs layout doc

* updated section heading in fs layout doc

* updated upgrage notification and migration guides

* general cleanup of page titles and descriptions

* Update query optimizations guide (#2441)

* updated pushdowns list, closes #2439, closes #1042

* added profiler information to optimize queries doc

* removed window as a heavy function

* minor change to optimize queries

* update usage of the word manipulate to operate

* add information about dynamically defining filter values, closes #2150

* add information about set vs map to query optimizations, closes #2101

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated pushdowns table

* updated table formatting

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Add windows install instructions (#2430)

* add windows install instructions

* removed unnecessary newlines

* removed notes and newlins from windows install instructions

* added known issues to windows warning

* updated windows install instructions

* updated influxdb version in 1.x and cloud docs

* InfluxDB 2.0.5 swagger (#2448)

* updated swagger files to use influxdata/openapi, added helper script

* fixed typo, added newline

* InfluxDB 2.0.5 release notes (#2426)

* InfluxDB 2.0.5 release notes

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated influxdb 2.0.5 release notes to address PR feedback

* last minute additiosn to 2.0.5 release notes

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* InfluxDB 2.0.5 additions (#2449)

* InfluxDB 2.0.5 release notes

* Apply suggestions from code review

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated influxdb 2.0.5 release notes to address PR feedback

* last minute additiosn to 2.0.5 release notes

* last minute updates to oss, closes #2306, closes 1825

* deduped viz type content

* added missing viz options

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* updated v1compat swagger

* minor updates to influxdb 2.0.5 release notes

Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
Co-authored-by: Edd Robinson <me@edd.io>
2021-04-28 09:10:30 -06:00