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

chore: spelling, grammer and clarity #60

Merged
merged 5 commits into from
Apr 3, 2024
Merged

Conversation

ramirezj
Copy link
Member

@ramirezj ramirezj commented Apr 2, 2024

closes #58

Summary by CodeRabbit

  • New Features
    • Improved SQL queries in various documentation files to add functionalities like listing admins external to the company and Apple devices based on different criteria.
  • Documentation
    • Enhanced SQL query syntax and clarity in multiple documentation pages.

Copy link
Contributor

coderabbitai bot commented Apr 2, 2024

Walkthrough

The recent updates to the project involve correcting syntax errors in SQL queries across various documentation files related to Kolide plugin tables. Additionally, new queries have been added for listing specific data based on different criteria, enhancing the functionality and completeness of the documentation.

Changes

File Path Change Summary
.docs/tables/kolide_k2_admin_user.md Updated SQL query with a semicolon, added two new queries for listing admins.
.docs/tables/kolide_k2_deprovisioned_person.md Added semicolon to SQL query, included new queries for deprovisioned people.
.docs/tables/kolide_k2_device.md Added semicolon to SQL query, introduced three new queries for listing Apple devices.
.docs/tables/kolide_k2_package.md Added SQL code block, included two new queries for recent releases and macOS installer URL.

Assessment against linked issues

Objective Addressed Explanation
Each query should end with a semicolon (#59)
Proper formatting of SQL code blocks (#59) The summary does not explicitly mention the correction of SQL code block formatting.
Add more example queries for tables (#59) The summary does not mention the addition of more example queries for tables.
Update Makefile to match a specific format (#59) The Makefile update is not addressed in the changes summary.

Poem

"In the realm of SQL, where queries dance and play,
CodeRabbit hops in, ensuring syntax is all okay.
New queries sprout like seeds in fertile ground,
Documentation blooms, with clarity profound. 🌱
With a whisk of its tail, and a nod so bright,
CodeRabbit's touch makes the data shine just right." 🐇💻

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ramirezj ramirezj mentioned this pull request Apr 2, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 49ca3ba and 6a078fd.
Files selected for processing (11)
  • .github/ISSUE_TEMPLATE/bug-report.md (1 hunks)
  • .github/ISSUE_TEMPLATE/config.yml (1 hunks)
  • .github/ISSUE_TEMPLATE/feature-request---new-table.md (1 hunks)
  • .github/ISSUE_TEMPLATE/feature-request.md (1 hunks)
  • .github/PULL_REQUEST_TEMPLATE.md (1 hunks)
  • docs/index.md (2 hunks)
  • docs/tables/kolide_k2_admin_user.md (1 hunks)
  • docs/tables/kolide_k2_deprovisioned_person.md (1 hunks)
  • docs/tables/kolide_k2_device.md (1 hunks)
  • docs/tables/kolide_k2_package.md (1 hunks)
  • docs/tables/table_kolide_k2_audit_logs.md (3 hunks)
Files skipped from review due to trivial changes (5)
  • .github/ISSUE_TEMPLATE/feature-request---new-table.md
  • .github/ISSUE_TEMPLATE/feature-request.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • docs/index.md
  • docs/tables/kolide_k2_admin_user.md
Additional comments not posted (6)
docs/tables/kolide_k2_package.md (1)

9-9: The addition of the SQL code block under the "Basic info" section enhances the documentation by providing a clear example query. This aligns well with the PR's objectives of improving documentation clarity and quality.

docs/tables/kolide_k2_deprovisioned_person.md (1)

26-26: Correctly adding a semicolon at the end of the SQL query ensures adherence to SQL syntax best practices. This change improves the consistency and quality of the documentation.

docs/tables/kolide_k2_device.md (1)

30-30: Adding a semicolon at the end of the SQL query is a good practice for ensuring correct SQL syntax. This change contributes to the overall goal of improving documentation quality.

docs/tables/table_kolide_k2_audit_logs.md (1)

28-28: The addition of a semicolon at the end of the SQL query ensures adherence to SQL syntax best practices. This change improves the consistency and quality of the documentation.

.github/ISSUE_TEMPLATE/config.yml (1)

1-8: The configuration changes in config.yml effectively guide community contributions by disabling blank issues and providing structured contact links. This aligns with the PR's objectives of improving project management practices.

.github/ISSUE_TEMPLATE/bug-report.md (1)

1-26: The bug report template is well-structured and provides clear sections for contributors to describe issues comprehensively. This aligns with the PR's objectives of improving project management and contribution processes.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 6a078fd and 1926a67.
Files selected for processing (4)
  • docs/tables/kolide_k2_admin_user.md (1 hunks)
  • docs/tables/kolide_k2_deprovisioned_person.md (1 hunks)
  • docs/tables/kolide_k2_device.md (1 hunks)
  • docs/tables/kolide_k2_package.md (2 hunks)
Additional comments not posted (10)
docs/tables/kolide_k2_package.md (2)

19-29: The SQL query for finding installers with recent releases is clear and follows best practices. However, consider adding a comment within the SQL code block to briefly explain the logic behind using date_trunc('day', current_date) - interval '4 weeks' for the benefit of less experienced readers.


31-40: The SQL query for finding the installer URL for macOS is concise and correctly targets macOS installers by using id like 'darwin%'. This is a good practice for ensuring clarity and specificity in queries. Well done.

docs/tables/kolide_k2_admin_user.md (2)

28-29: Adding a semicolon at the end of the SQL query is a good practice for ensuring the query is properly terminated. This change improves the syntax consistency across the documentation.


31-44: The SQL query for listing all admins external to the company is clear and correctly uses the not like operator to filter emails. This is a good practice for ensuring the query accurately captures the intended records.

docs/tables/kolide_k2_deprovisioned_person.md (2)

17-28: Adding a semicolon at the end of the SQL query is a good practice for ensuring the query is properly terminated. This change improves the syntax consistency across the documentation.


30-40: The SQL query for listing all deprovisioned people who have logged in within the past week is clear and correctly uses date_trunc to filter records. This is a good practice for ensuring the query accurately captures the intended records.

docs/tables/kolide_k2_device.md (4)

30-31: Adding a semicolon at the end of the order by clause in the SQL query ensures proper syntax. This change improves the syntax consistency across the documentation.


33-46: The SQL query for listing all Apple devices not on the latest major version of macOS is clear and correctly uses the not like operator to filter operating systems. This is a good practice for ensuring the query accurately captures the intended records.


48-61: The SQL query for listing all Apple devices not on the latest minor version of macOS Sonoma is clear and correctly uses the not like operator to filter operating systems. This is a good practice for ensuring the query accurately captures the intended records.


63-79: The SQL query for listing all Apple devices considered vintage is clear and correctly uses the like operator to filter hardware models. Including a link to the official list of discontinued, vintage, and obsolete products is a thoughtful addition that provides valuable context.

docs/tables/kolide_k2_admin_user.md Outdated Show resolved Hide resolved
docs/tables/kolide_k2_deprovisioned_person.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1926a67 and a7fe812.
Files selected for processing (2)
  • docs/tables/kolide_k2_device.md (1 hunks)
  • docs/tables/kolide_k2_package.md (2 hunks)
Additional comments not posted (4)
docs/tables/kolide_k2_package.md (2)

6-12: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [1-1]

The document title might contain a spelling mistake. Please ensure "kolide_k2_package" is correctly spelled according to the project's naming conventions.

Verification successful

The term 'kolide_k2_package' is consistently used across the documentation, suggesting that it is spelled correctly according to the project's naming conventions.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the correct spelling of 'kolide_k2_package' across the documentation
rg --type md 'kolide_k2_package'

Length of output: 254


15-40: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [9-40]

The added SQL queries enhance the documentation by providing practical examples for users. However, consider adding a brief description for each query to explain its purpose and what users can expect from its execution. This will improve clarity and usability of the documentation.

docs/tables/kolide_k2_device.md (2)

30-30: Adding a semicolon at the end of the SQL query is a good practice for maintaining consistency and adhering to SQL syntax standards. Well done on this correction.


33-79: The new SQL queries added to list Apple devices based on different criteria are valuable additions to the documentation. Similar to the previous file, consider adding brief descriptions for each query to explain their purpose and expected outcomes. This will enhance the documentation's clarity and usefulness for the readers.

@ramirezj
Copy link
Member Author

ramirezj commented Apr 2, 2024

@coderabbitai review

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a7fe812 and 47bbe84.
Files selected for processing (3)
  • docs/tables/kolide_k2_admin_user.md (1 hunks)
  • docs/tables/kolide_k2_audit_log.md (3 hunks)
  • docs/tables/kolide_k2_deprovisioned_person.md (1 hunks)
Additional comments not posted (5)
docs/tables/kolide_k2_audit_log.md (1)

28-28: The SQL query correctly ends with a semicolon now, which is a good practice for ensuring query termination. This change aligns with the PR objectives of fixing syntax issues.

docs/tables/kolide_k2_admin_user.md (2)

28-29: Adding a semicolon at the end of the SQL query is a good practice for query termination. This change aligns with the PR objectives of fixing syntax issues.


31-44: The addition of new SQL queries to list admins based on specific criteria is a valuable enhancement to the documentation. It provides users with practical examples of how to query the data. Ensure that these queries have been tested and return the expected results.

docs/tables/kolide_k2_deprovisioned_person.md (2)

17-28: Adding a semicolon at the end of the SQL query is a good practice for query termination. This change aligns with the PR objectives of fixing syntax issues.


30-55: The addition of new SQL queries to list deprovisioned people based on specific criteria is a valuable enhancement to the documentation. It provides users with practical examples of how to query the data. Ensure that these queries have been tested and return the expected results.

docs/tables/kolide_k2_audit_log.md Show resolved Hide resolved
@ramirezj
Copy link
Member Author

ramirezj commented Apr 2, 2024

@coderabbitai review

@ramirezj ramirezj merged commit 98e201a into main Apr 3, 2024
3 checks passed
@ramirezj ramirezj deleted the initial-plugin-feedback branch April 3, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation Missing Sample SQL Query for kolide_k2_package Table
1 participant