Commit Graph

7 Commits (15395a9da6b76aa903915e06e50c446233393734)

Author SHA1 Message Date
Jason Stirnaman 5c74bf4ff6
5156 Writes: add v1 to Serverless get-started (#5233)
* chore(ci): Install Telegraf to test container

* chore(v3): test telegraf config and startup:

- creates the config file for the test run. TODO: remove the duplication and use the content for test setup.
- fix placeholder name

* fix(v3): make test pass for curl API example

* chore(ci): make tests pass for write. Add dependencies to Dockerfile.

* chore(tests): update test build

- Compose metadata: Add profile to test service. We can decouple services later and apply the profile to each. Rename. Pass the image name to the container.
- Fetch the parse_yaml.sh script during docker build, so we only fetch when necessary. Track the script in git. This is still a little janky, but better.
- test.sh: Use `HEAD` for diff (duh). Go back to using docker compose up so we're rebuilding only as needed and reusing the container - much faster, but the output isn't as pretty as `run`.
- pytest.ini, requirements.txt: Use pytest-dotenv to load env.products variables.

* fix(write): update JS instructions and pass tests.

* chore(ci): Install influx v2 CLI into the Docker test container.

* chore(ci): move .env file loading to pytest and run product tests separately with the proper .env file:

- Moves .env configs to be loaded by the test runner instead of by Docker. I'd prefer to ignore any product divergence and have them run interchangeably, but the pros outweigh the cons for now.
- Add example for passing custom commands in the compose file.

* fix(v3): replace curl example with v1 and v2, simplify JS example, pass tests.

feat(v3): add v1 write, test, update text:

- adds Serverless v1 /write example with note about autogen behavior
- adds link from v1 examples to Migrate guide
- adds description of autogen behavior to v1-compat guide
- updates "powered by..." text
- adapts examples to make them more testable, asserts `/write` status code
- replace "shared" examples (only used once) with inline to make them testable

fix(v3): promote migrate link

* Update content/influxdb/cloud-dedicated/get-started/write.md

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* chore(v3): Write: fix wording for curl success  (#5156)

---------

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2023-11-15 14:41:29 -06:00
Jason Stirnaman 067d53c692
fix: v3 compressed examples, gzip capitalization (#5142) 2023-09-18 13:13:00 -05:00
Jason Stirnaman 5e5630389e
hotfix(v3): missing shared example files (#5127)
* hotfix(v3): missing shared example files

- replace paths to missing shared-text files with examples.
- update timestamps for custom-timestamps in older examples.
- the shared-text solution isn't really working for us, as it can't render the host shortcode and the placeholder names differ between platforms. I'll probably start doing away with it and tinker on a better way to achieve what I was trying to do.

* Update content/influxdb/clustered/guides/api-compatibility/v1/_index.md

* Update content/influxdb/clustered/guides/api-compatibility/v1/_index.md

---------

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2023-09-06 10:41:13 -05:00
Jason Stirnaman 1a20ccf5b3
Improve API compatibility and client library reference docs (#4985)
* chore(dedicated): add link

* fix(dedicated): Change Flight client reference to link to Arrow Flight Client docs

* fix(serverless): cleanup query tools list

* fix(dedicated): cleanup query tools list

* fix(v3): update client libraries intro

* fix(dedicated): Add Go v3 client library. Update Go v2 library

* fix(dedicated): cleanup javascript v2 client lib

* feature(dedicated): python v3 client library reference

- set a pattern for client library reference documentation

* chore(v3): add python client lib reference, fix syntax

* fix(v3): demote v2 JS client library

* chore(v3): move and revise API primers

- move to API compatibility
- revise
- delete redundant examples and link to other pages

* fix(v3): replace influx with influx3 CLI

* fix(v3): cleanup v2 client library references

* fix(v3): SEO title

* fix(v3): api-compatibility
- retention policy for serverless
- format placeholders

* Update content/influxdb/cloud-dedicated/reference/client-libraries/v2/javascript/browser.md

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

* Update content/influxdb/cloud-dedicated/reference/client-libraries/v3/_index.md

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

* Update content/influxdb/cloud-dedicated/reference/client-libraries/v2/javascript/nodejs/install.md

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

* Update content/influxdb/cloud-dedicated/reference/client-libraries/v2/javascript/nodejs/install.md

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

* Update content/influxdb/cloud-serverless/reference/client-libraries/v3/python.md

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

---------

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2023-06-22 10:27:36 -06:00
Scott Anderson 4df36bacc9 hotfix: minor updates to dedicated and serveriless optimize writes 2023-06-21 10:06:12 -06:00
Scott Anderson 7246eb647b
Port "Optimize writes" guide to Serverless and Dedicated (#4973)
* port optimize writes guide to serverless and dedicated

* updated dedicated lp guide
2023-06-21 09:55:11 -06:00
Scott Anderson 3116379931
Cloud Serverless InfluxQL (#4980)
* port influxql reference to serverless

* ported influxql guide content to serverless

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

* update and port sample-data from dedicated to serverless

* Manage tokens in InfluxDB Cloud Serverless (#4984)

* add token management docs to serverless

* updated auth scheme in shared code block

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

* addressed pr feedback, updated serverless auth schema from bearer to token

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

* Add DBRP mapping information to Cloud Serverless (#4982)

* add dbrp mapping to cloud serverless

* added notes about dbrp mappings to serverless influxql docs

* Apply suggestions from code review

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

* restructure serverless sql docs

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
2023-06-20 07:52:51 -06:00