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

Demo Fixes - #123, #168 #234

Merged
merged 2 commits into from
Feb 8, 2019
Merged

Conversation

tabascq
Copy link
Contributor

@tabascq tabascq commented Feb 7, 2019

Putting the whole demo in a transaction and also letting you immediately put yourself on a team to save time.

Putting the whole demo in a transaction and also letting you immediately put yourself on a team to save time.

await _context.SaveChangesAsync();

if (teamLoneWolf != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this isn't just part of the if statement on line 225? Seems like it could be done there - not sure what I'm missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It needs to be somewhere after a SaveChangesAsync() in order to be valid - that's what gets the team ID set up.

<div class="form-group">
<div class="checkbox">
<label>
<input asp-for="AddCreatorToLoneWolfTeam" /> @Html.DisplayNameFor(model => model.AddCreatorToLoneWolfTeam)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know what this defaults to? It would be nice if we could default to yes since I'm guessing the common test case is to check on puzzles from a player's perspective rather than to test team registration from a player's perspective

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So far it's defaulting to false just like the "start the event" checkbox. Can turn these to true later if the group prefers.

@tabascq tabascq merged commit 71c0426 into PuzzleServer:master Feb 8, 2019
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