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

🪲 The endpoint store_parsons_order fails, always #5704

Closed
boryanagoncharenko opened this issue Aug 16, 2024 · 0 comments · Fixed by #5708
Closed

🪲 The endpoint store_parsons_order fails, always #5704

boryanagoncharenko opened this issue Aug 16, 2024 · 0 comments · Fixed by #5708
Assignees
Labels
bug Something isn't working

Comments

@boryanagoncharenko
Copy link
Collaborator

Describe the bug
When the user attempts to run a parson program, the store_parsons_order endpoint is called and it currently it fails, always. The issue is that the request does not conform to the type declarations of the parsons table. The request sends the level, exercise and timestamp as integers, while the table definition expects a string for level and exercise and a list for timestamp:

self.parsons = dynamo.Table(storage, "parsons", "id",
                            types=only_in_dev({
                                'id': str,
                                'username': str,
                                'level': str,
                                'exercise': str,
                                'order': str,
                                'correct': str,
                                'timestamp': ListOf(int)
                            }),

How to reproduce
Open the Puzzle of any level and click the Run button. In your network tab you will see that the store_parsons_order call fails.

@boryanagoncharenko boryanagoncharenko added the bug Something isn't working label Aug 16, 2024
@jpelay jpelay self-assigned this Aug 19, 2024
@mergify mergify bot closed this as completed in #5708 Aug 21, 2024
mergify bot pushed a commit that referenced this issue Aug 21, 2024
Fixes #5704

**How to test**

Attempt a parsons exercise and it should work, not returning any errors.

I also added a few E2E tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants