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

refactor: use enums with graphene #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikomakela
Copy link
Contributor

@nikomakela nikomakela commented Aug 22, 2024

KK-1108.

Use the enums as preferred in django graphene. An alternative for #390. See https://github.com/City-of-Helsinki/kukkuu-admin/pull/277/files for schema changes in Kukkuu Admin UI when the graphql schema is generated from this source base.

PR before rebasing:

Base automatically changed from KK-1108-upgrade-django-4-2 to master August 23, 2024 07:25
@nikomakela nikomakela force-pushed the KK-1108-refactor-enum-handling branch from 9636eaa to 7973984 Compare August 27, 2024 08:37
@terovirtanen
Copy link
Contributor

KUKKUU-API branch is deployed to platta: https://kukkuu-pr399.api.dev.hel.ninja 🚀🚀🚀

@terovirtanen
Copy link
Contributor

TestCafe result is failed for https://kukkuu-pr399.api.dev.hel.ninja 😿💢💥💥

@terovirtanen
Copy link
Contributor

KUKKUU-API branch is deployed to platta: https://kukkuu-pr399.api.dev.hel.ninja 🚀🚀🚀

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://kukkuu-pr399.api.dev.hel.ninja 😆🎉🎉🎉

@karisal-anders karisal-anders force-pushed the KK-1108-refactor-enum-handling branch from 7973984 to 1d1d413 Compare September 20, 2024 11:25
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
16 Security Hotspots
15.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@terovirtanen
Copy link
Contributor

KUKKUU-API branch is deployed to platta: https://kukkuu-pr399.api.dev.hel.ninja 🚀🚀🚀

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://kukkuu-pr399.api.dev.hel.ninja 😆🎉🎉🎉

Copy link
Contributor Author

@nikomakela nikomakela left a comment

Choose a reason for hiding this comment

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

These have now appeared. Probably after rebase?

Comment on lines +14 to +29
'errors': [
{
'extensions': {
'code': 'GENERAL_ERROR'
},
'locations': [
{
'column': 3,
'line': 3
}
],
'message': '''value too long for type character varying(16)
''',
'path': [
'addMessage'
]
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 error needs to be fixed.

Comment on lines +38 to +53
'errors': [
{
'extensions': {
'code': 'GENERAL_ERROR'
},
'locations': [
{
'column': 3,
'line': 3
}
],
'message': '''value too long for type character varying(16)
''',
'path': [
'addMessage'
]
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 error needs to be fixed.

Comment on lines +66 to +79
'extensions': {
'code': 'GENERAL_ERROR'
},
'locations': [
{
'column': 7,
'line': 22
}
],
'message': "Enum 'EventParticipantsPerInvite' cannot represent value: 'EnumMeta.FAMILY'",
'path': [
'addEvent',
'event',
'participantsPerInvite'
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 error needs to be fixed

Comment on lines +1698 to +1715
'errors': [
{
'extensions': {
'code': 'GENERAL_ERROR'
},
'locations': [
{
'column': 7,
'line': 22
}
],
'message': "Enum 'EventParticipantsPerInvite' cannot represent value: 'EnumMeta.FAMILY'",
'path': [
'addEvent',
'event',
'participantsPerInvite'
]
}
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 error needs to be fixed

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