Skip to content

Conversation

@AlexSCorey
Copy link
Member

These changes bring in new model fields and new serialization logic needed for Project Sync work. New fields like "scm_update_on_launch", "last_synced_at", and "scm_update_cache_timeout" and with a new property needs_update_on_launch help us determine if a project should be updated before being used.

Unrelated to this specific issue, I've moved the project url field to be an editable field in the django api ui to make testing easier. I've also moved the project.created_by, and project.modified_by to be read_only fields as they should not be editable in the api ui.

@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch 2 times, most recently from 60f1209 to bd2d2f1 Compare January 29, 2026 19:43
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (project_sync_epic@66bfce6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/aap_eda/core/models/project.py 93.33% 1 Missing ⚠️
@@                 Coverage Diff                  @@
##             project_sync_epic    #1452   +/-   ##
====================================================
  Coverage                     ?   91.20%           
====================================================
  Files                        ?      235           
  Lines                        ?    10115           
  Branches                     ?        0           
====================================================
  Hits                         ?     9225           
  Misses                       ?      890           
  Partials                     ?        0           
Flag Coverage Δ
unit-int-tests-3.11 91.20% <96.29%> (?)
unit-int-tests-3.12 91.20% <96.29%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/aap_eda/api/serializers/project.py 93.63% <100.00%> (ø)
src/aap_eda/api/views/project.py 100.00% <100.00%> (ø)
...migrations/0068_project_last_synced_at_and_more.py 100.00% <100.00%> (ø)
src/aap_eda/core/models/project.py 96.00% <93.33%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch from bd2d2f1 to 2462bd8 Compare January 30, 2026 19:51
@AlexSCorey AlexSCorey changed the base branch from main to project_sync_epic February 9, 2026 16:49
@AlexSCorey AlexSCorey marked this pull request as ready for review February 9, 2026 17:00
@AlexSCorey AlexSCorey requested a review from a team as a code owner February 9, 2026 17:00
@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch from 2462bd8 to d17d7b0 Compare February 9, 2026 18:35
@AlexSCorey AlexSCorey requested a review from hsong-rh February 9, 2026 18:35
@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch from d17d7b0 to 154ee24 Compare February 9, 2026 18:55
@AlexSCorey AlexSCorey requested a review from hsong-rh February 9, 2026 20:08
@AlexSCorey AlexSCorey changed the title [AAP-64075 feat: adds models fields, and serialization for auto project sync [AAP-64075] feat: adds models fields, and serialization for auto project sync Feb 9, 2026
)
elif worker_class:
mapped_worker_class = worker_class
# Extract the class name from a full module path
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this file included here? Please remove it

Copy link
Member Author

@AlexSCorey AlexSCorey Feb 9, 2026

Choose a reason for hiding this comment

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

Looks like it was removed in main. I've updated the project_sync_epic branch today to keep it in sync with main and it seems that before I updated that branch this line was removed.
66bfce6

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need to keep the epic branch synchronized with the main branch for now. Subsequent changes can be completed in one go: merge all changes from the feature branch back into the main branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

@hsong-rh I don't really plan to keep it up to date 100%, just in the beginning stages of doing this work I rebased the feature branch. Moving forward we can stop update the epic branch with main, or do it on a slower cadence. I think if the epic branch get very much out of date we may run into some pretty gnarly merge conflicts. At least that as been my experience in that past.

For this particular case, how would you like me to proceed? 1) Revert the changes in the Epic branch and in this PR? 2) Let this change go in and stop updating the epic branch with main?

Copy link
Contributor

Choose a reason for hiding this comment

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

@AlexSCorey Take the easy way for you, maybe create a new branch? I am ok. My point is to keep the feature branch focused solely on the feature. After we're done, we merge back to the main branch in a single shot.

@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch 2 times, most recently from 0da8f60 to 3248ec6 Compare February 9, 2026 22:42
@AlexSCorey AlexSCorey force-pushed the 64075-Proj_Sync_Config_Schema branch from 3248ec6 to 49b1507 Compare February 10, 2026 21:10
@sonarqubecloud
Copy link

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