Skip to content

Ontmoetingsformulier changes#611

Merged
roberttullycarr merged 12 commits intopandapanda_developmentfrom
PP_OF_Changes
Mar 13, 2025
Merged

Ontmoetingsformulier changes#611
roberttullycarr merged 12 commits intopandapanda_developmentfrom
PP_OF_Changes

Conversation

@roberttullycarr
Copy link
Copy Markdown
Contributor

No description provided.

- added encounterID as foreign key on comments, to add comments directly to ontmoetingsformulier
- added input new input types for games, comments and encounter competitions
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 21, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@roberttullycarr
Copy link
Copy Markdown
Contributor Author

ik heb de Contributor Licentie Overeenkomst gelezen en verklaar mij hiermee akkoord

@roberttullycarr
Copy link
Copy Markdown
Contributor Author

recheck

@roberttullycarr roberttullycarr changed the title Pp of changes Ontmoetingsformulier changes Feb 21, 2025
@roberttullycarr roberttullycarr changed the base branch from develop to pandapanda_development February 21, 2025 14:42
Comment thread libs/backend/database/src/models/comment.model.ts Outdated
Comment thread libs/backend/database/src/models/event/game.model.ts
linkType: newCommentData.linkType,
clubId: newCommentData.clubId,
...(newCommentData.clubId ? {clubId: newCommentData.clubId} : {}),
...(newCommentData.encounterId ? {encounterId: newCommentData.encounterId} : {}),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here, this value should be filled in on linkId

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the goal here was to create a game leader comment, but it would be much better to add it as a new link type. I didn't know a game leader was definitely a part of the home team, so my thought was the game leader wouldn't have a valid club id. I will change this

gameId: game.id,
team: player.team,
player: player.player,
systemId: player.systemId,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

system can be globally, and maybe even fetched here (so not passed from the client)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So what are you suggesting I do here? In our app, we are passing this from the frontend


if (gameData.players) {
for (const player of gameData.players) {
await GamePlayerMembership.create({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ranking for singles,doubles,mix are missing in the membership

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should this data should be coming from the RankingLastPlaces table? at the time I wrote this, I had no clue how that data was being generated


// if game is not a draw, update the score of the encounter
if (gameData.winner !== 0){
await encounter.update({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why + 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm assuming here a game is worth one point for the winning team? it seems that way from the data we have, but i'm not at all sure that's the case

@roberttullycarr roberttullycarr merged commit c745fc7 into pandapanda_development Mar 13, 2025
@roberttullycarr roberttullycarr deleted the PP_OF_Changes branch March 13, 2025 13:26
ArnoSoontjens pushed a commit that referenced this pull request Mar 11, 2026
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.

2 participants