seatplus / eveapi

MIT License
0 stars 0 forks source link

Refactor/maintenance character affiliation #656

Closed herpaderpaldent closed 3 months ago

herpaderpaldent commented 3 months ago

This addresses the second part of https://github.com/seatplus/eveapi/issues/650

First of all, a new RefreshCharacterAffiliationsService has been created that replaces some logic that was previously within the CharacterAffiliationJob.

This sevices checks every 5 minutes if:

if this is the case the ids are being dispatched.

CharacterAffiliationJob complexity has reduced. Its cleaner now and tests has been simplified by doing this. Resulting in better testability. Also the job now concentrates again in only one thing - getting the character_affiliations from ESI. Also refactoring lead to simplification and more explicit design, making it easier to maintain

what-the-diff[bot] commented 3 months ago

PR Summary

Note: The changes include everything from new files, modifications to existing ones and changes to tests.

codeclimate[bot] commented 3 months ago

Code Climate has analyzed commit 7f98a2a0 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Clarity 2
Style 1

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 90.1%.

View more on Code Climate.