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

Feat/dataset slug name map #124

Merged
merged 33 commits into from
Aug 1, 2024
Merged

Feat/dataset slug name map #124

merged 33 commits into from
Aug 1, 2024

Conversation

GeorgeGoodall
Copy link
Contributor

@GeorgeGoodall GeorgeGoodall linked an issue Jul 31, 2024 that may be closed by this pull request
6 tasks
Comment on lines +3 to +10
const getFullServiceName = (service) => {
if (!service || typeof service !== 'string') {
throw new Error('Service name must be a non-empty string')
}
return config.serviceName.replace('Provide', service)
}

export default getFullServiceName
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is so we can correctly name each of the sub services.

i.e.

provide planning and housing data
submit planning and housing data
manage ...
etc

@GeorgeGoodall GeorgeGoodall marked this pull request as ready for review August 1, 2024 10:58
@GeorgeGoodall GeorgeGoodall requested a review from rosado August 1, 2024 10:58
test/unit/datasette.test.js Outdated Show resolved Hide resolved
@rosado rosado merged commit ef0a438 into staging Aug 1, 2024
3 checks passed
@rosado rosado deleted the feat/datasetSlugNameMap branch August 1, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Make sure org mappings come from datasette
3 participants