refactor: move stateless utilities to DIRACCommon#8289
Merged
fstagni merged 2 commits intoDIRACGrid:integrationfrom Sep 2, 2025
Merged
refactor: move stateless utilities to DIRACCommon#8289fstagni merged 2 commits intoDIRACGrid:integrationfrom
fstagni merged 2 commits intoDIRACGrid:integrationfrom
Conversation
Move ClassAd, ParametricJob, and stateless JobDBUtils functions to DIRACCommon to reduce circular dependencies with diracx. Add backward compatibility re-exports in DIRAC modules. Changes: - DIRACCommon/Utils/ClassAd/ClassAdLight.py: Complete ClassAd implementation - DIRACCommon/Utils/ParametricJob.py: Parametric job utilities - DIRACCommon/Utils/JobDBUtils.py: Stateless JDL compression/decompression - Added comprehensive tests for all moved functionality - Updated DIRAC modules to re-export from DIRACCommon for compatibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Reorganize DIRACCommon modules to match the original DIRAC structure: - Core/Utilities/ClassAd/ClassAdLight.py (utilities belong in Core) - WorkloadManagementSystem/DB/JobDBUtils.py (preserves original location) - WorkloadManagementSystem/Utilities/ParametricJob.py (preserves original location) Update all imports across DIRAC, diracx, and DIRACCommon to use the new structured paths. Reorganize tests to match the new directory structure. This maintains the logical organization while enabling proper code migration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
184bc8d to
8e4479a
Compare
fstagni
approved these changes
Sep 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move ClassAd, ParametricJob, and stateless JobDBUtils functions to DIRACCommon to reduce circular dependencies with diracx. Add backward compatibility re-exports in DIRAC modules.
BEGINRELEASENOTES
*Core
CHANGE: Move ClassAdLight to DIRACCommon
*Workload Management
CHANGE: Move JobDBUtilsto DIRACCommon
CHANGE: Move ParametricJob to DIRACCommon
ENDRELEASENOTES