Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: Docs Update + Other non-functional changes #87

Merged
merged 6 commits into from
Jun 2, 2023

Conversation

tzaffi
Copy link
Contributor

@tzaffi tzaffi commented May 31, 2023

I pulled out the doc updates from draft PR #83 and also fixed a couple of scoping issues in our tests.

Summary of Changes

  • Introducing .markdownlint.yml. This isn't enforced in CI but while using the VS Code extension it helped me identify some bugs in our docs. For example, some improperly formatted list items.
  • Small edits in the following docs:
    • docs/Configuration.md
    • docs/Development.md
    • docs/GettingStarted.md
    • docs/tutorials/WritingBlocksToFile.md
  • loop variable capture fixes in:
    • conduit/pipeline/pipeline_test.go
    • conduit/plugins/importers/algod/algod_importer_test.go (also tightening the test expectations around the genesis object received from Init())

TODO

  • Shall we add exportloopref to our linters?
linters:
  enable:
    - exportloopref

@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Merging #87 (cbe1692) into master (442791a) will increase coverage by 1.59%.
The diff coverage is 75.40%.

❗ Current head cbe1692 differs from pull request most recent head ce68165. Consider uploading reports for the commit ce68165 to get more accurate results

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   67.66%   69.25%   +1.59%     
==========================================
  Files          32       36       +4     
  Lines        1976     2417     +441     
==========================================
+ Hits         1337     1674     +337     
- Misses        570      651      +81     
- Partials       69       92      +23     
Impacted Files Coverage Δ
conduit/data/block_export_data.go 100.00% <ø> (+92.30%) ⬆️
conduit/plugins/importers/algod/metrics.go 100.00% <ø> (ø)
...plugins/processors/filterprocessor/gen/generate.go 34.28% <ø> (ø)
pkg/cli/internal/list/list.go 20.75% <ø> (ø)
...lugins/exporters/postgresql/postgresql_exporter.go 66.66% <51.21%> (-11.54%) ⬇️
pkg/cli/cli.go 65.97% <65.97%> (ø)
conduit/pipeline/pipeline.go 66.18% <72.48%> (+0.72%) ⬆️
conduit/data/config.go 76.47% <76.47%> (ø)
conduit/plugins/importers/algod/algod_importer.go 88.60% <91.45%> (+0.29%) ⬆️
conduit/pipeline/errors.go 100.00% <100.00%> (ø)
... and 4 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tzaffi tzaffi changed the title Docs Update enhancement: Docs Update + Other non-functional changes May 31, 2023
@tzaffi tzaffi added the documentation Improvements or additions to documentation label May 31, 2023
@tzaffi tzaffi requested a review from a team May 31, 2023 17:12
Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like good changes to me!

conduit/pipeline/pipeline_test.go Show resolved Hide resolved
@@ -0,0 +1,7 @@
default: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally use VSCode so I am fine with this change but wondering what others think about adding IDE/editor/extension specific config files in the root dir.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding exportloopref ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only looked at the README but it looks like a good addition to me and the benefits seem to outweigh the possibilities of false negatives

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see cbe1692

FYI - it didn't actually catch the problem. But we're also using it in go-algorand so it should be safe.

@winder winder changed the title enhancement: Docs Update + Other non-functional changes misc: Docs Update + Other non-functional changes Jun 2, 2023
@winder winder merged commit 40c0ffc into algorand:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants