Skip to content

[Backend] - Endpoints Tasks - #582

Merged
lennertdr merged 9 commits into
developmentfrom
559-backend---endpoint-to-create-task-within-assignment
May 16, 2025
Merged

[Backend] - Endpoints Tasks#582
lennertdr merged 9 commits into
developmentfrom
559-backend---endpoint-to-create-task-within-assignment

Conversation

@thomasdejaeghere

@thomasdejaeghere thomasdejaeghere commented May 16, 2025

Copy link
Copy Markdown
Contributor

Changes

  • Created tasks endpoints, updated documentation in swagger
  • Added Get, Update, Delete, Create functionality for Tasks
  • Added Get functionality for mulitple tasks based on assignment parentId (and optional step number)
  • It's possible to make multiple tasks for a learningObject (step in LearningPath)
  • Updated Submissions with an taskId field to link a submission to a task
  • Wrote integration tests for the endpoints, unit tests will be added in the future

@Adrien-VL I combined your written functionality with mine in this PR.

@lennertdr
lennertdr merged commit d069bbc into development May 16, 2025
@lennertdr
lennertdr deleted the 559-backend---endpoint-to-create-task-within-assignment branch May 16, 2025 17:59

@bramcomyn bramcomyn left a comment

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.

No immediate feedback, but perhaps explain why some unit tests appear to have been deleted?

Comment on lines -93 to -100
it('should navigate to correct learning path URL', () => {
component.path.hruid = 'xyz456';
component.path.language = 'Test';
fixture.detectChanges();

const card = fixture.debugElement.query(By.css('mat-card'));
expect(card.attributes['ng-reflect-router-link']).toContain('/paths,xyz456,Test');
});

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 was this test deleted?

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.

it failed and will be changed later on

Comment on lines -44 to -48
it('should have the text', () => {
const text = harness.fixture.nativeElement.querySelector('p');
expect(text).toBeTruthy();
});

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 was this test deleted?

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 reason, test failed, if we have the time we will look deeper into it

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.

(see details of the last failing push)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants