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

/Specification API #4

Merged
merged 6 commits into from
Feb 11, 2025
Merged

/Specification API #4

merged 6 commits into from
Feb 11, 2025

Conversation

ssadhu-sl
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

New API - /specification for pulling out specification table info from datasette into an API

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

You will need Docker to start the service.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above. Please refer to the Digital Land Testing Guidance for more information.

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

[optional] Are there any dependencies on other PRs or Work?

Copy link

@DilwoarH DilwoarH left a comment

Choose a reason for hiding this comment

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

Just one question, otherwise looks good

Choose a reason for hiding this comment

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

do these SQL queries need parameterising?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes would definitely prevent SQL Injections. I will make the change.

Copy link

@DilwoarH DilwoarH left a comment

Choose a reason for hiding this comment

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

Is there a reason why tests don't run as part of the PR?

@ssadhu-sl
Copy link
Contributor Author

@DilwoarH We do have an action called Test&Publish which runs after we push on the main branch. We manually trigger the action on other branches before creating a PR. But good call. I will discuss with team in our retro.

Copy link

@GeorgeGoodall-GovUk GeorgeGoodall-GovUk left a comment

Choose a reason for hiding this comment

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

looks good! I think you should just address Dilwoar's comment first but otherwise im happy

@ssadhu-sl ssadhu-sl merged commit 27b67a2 into main Feb 11, 2025
3 checks passed
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.

3 participants