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

More robust sync for unusual check-in states #712

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

robknight
Copy link
Member

@robknight robknight commented Sep 26, 2023

Fixes #694
Fixes #693

@robknight robknight requested a review from ichub September 26, 2023 09:45
@robknight robknight force-pushed the rob/sync-fixes branch 2 times, most recently from 9aaadee to dff3fae Compare September 26, 2023 12:52
step(
"should not be able to check in with a ticket that has already been used to check in",
async function () {
// TODO
Copy link
Member Author

Choose a reason for hiding this comment

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

This test exists further up the file, so this can be removed.

Copy link
Contributor

@ichub ichub left a comment

Choose a reason for hiding this comment

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

good find, thank you

return true;
}
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think you've run the autoformatter on this file

Copy link
Member Author

Choose a reason for hiding this comment

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

prettier seems to be broken for me in VSCode. I'll see if I can figure out what's wrong with it.

Copy link
Contributor

Choose a reason for hiding this comment

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

sometimes it's necessary to restart vscode to fix that. super annoying. #718

@@ -635,6 +642,87 @@ describe("devconnect functionality", function () {
);
});

/**
* This covers the case where we have a ticket marked as consumed, but
* the check-in is cancelled in Pretix.
Copy link
Contributor

Choose a reason for hiding this comment

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

'check-in is cancelled' is kind of confusing terminology - do you mean that it is 'effectively cancelled out by a check-in exit entry' or that a 'check-in entry was cancelled' or that a 'check-in entry was deleted altogether'?

@robknight robknight merged commit 1b572c3 into main Sep 26, 2023
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.

investigate pretix sync de-sync pretix sync checkin-code getTime
2 participants