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

#41 - Add fetching workflow jobs #55

Merged

Conversation

orlowski11
Copy link
Contributor

This should close #41

added services and tests for:

  • fetching workflow jobs
  • getting runner data from labels
  • calculating job time

@orlowski11 orlowski11 requested a review from kamilpiech97 July 5, 2024 14:40
@orlowski11 orlowski11 requested a review from kamilpiech97 July 8, 2024 06:45
@orlowski11 orlowski11 requested a review from kamilpiech97 July 8, 2024 08:32
@orlowski11 orlowski11 requested a review from kamilpiech97 July 8, 2024 09:16
@orlowski11 orlowski11 merged commit 62caf89 into #2-add-getting-data-from-github-api Jul 8, 2024
1 check passed
@orlowski11 orlowski11 deleted the #41-add-fetching-workflow-jobs branch July 8, 2024 09:26
AmonDeShir added a commit that referenced this pull request Aug 5, 2024
* #38 - Create models and migrations for data from GitHub api (#42)

* added models, migrations, dtos and factories

* cleanup

* Update app/DTO/WorkflowJobDTO.php

Co-authored-by: Kamil Piech <[email protected]>

---------

Co-authored-by: Kamil Piech <[email protected]>

* #39 - Add fetching repositories (#53)

* added fetching repositories service and tests

* changed repositories to collection & added timestamps

* fixed organization id in creating dto

* removed throwing exception on empty collection

* #40 - Add fetching workflow runs (#54)

added fetching workflow runs and tests

* #41 - Add fetching workflow jobs (#55)

* added services and tests for fetching workflow jobs, getting runner data from labels, calculating job time

* added checking if jobs are already fetched before sending request

* fixes & carbon for calculating job time

* - Fetching data from api async (#56)

* added route and controller method for fetching data

* changed to asynchrous fetching data

* removed unnecessary log

* cleanup

* added redis variables to env.ci

* added redis to workflows

* remove redis from workflow

* remove redis from env.ci

* add apple to job factory

* split FetchDataFromApi into multiple jobs

- Fixed a bug where AssignUserToOrganizationsService failed if the user organization did not exist
- Split FetchDataFromApi.php into multiple jobs

* fix linter errors

* use pricing values from config

* fix inconsistent response() usage

* use Symfony HTTP status codes

* use strict comparison in in_array()

---------

Co-authored-by: Kamil Piech <[email protected]>
Co-authored-by: AmonDeShir <[email protected]>
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