Repository navigation
Remove unused GRID, LaunchDarkly, and legacy command code - #575
Merged
Merged
Conversation
Drop the unused GRID/LEGACY_ROR_DUMP settings, LaunchDarkly features module, empty GRID_REMOVED_IDS lookup, duplicate CountryBucket, unused v2 Client tests, and the legacy GRID management commands. Co-authored-by: Joseph Rhoads <jrhoads@users.noreply.github.com>
Keep the legacy GRID command deleted. The only overlap with dev was a logging fix in that removed file. Update ARCHITECTURE.md so it no longer documents LaunchDarkly or the deleted commands. Co-authored-by: Joseph Rhoads <jrhoads@users.noreply.github.com>
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.
Purpose
Remove unused GRID conversion commands, the LaunchDarkly call site, and other dead code that is no longer part of the running API.
Approach
Delete the
legacy*management commands and the settings that only those commands used. Drop the emptyGRID_REMOVED_IDScheck in organization retrieve. Removefeatures.pyand the redundant v2 client test module, and drop the duplicateCountryBucketclass. Leave middleware and the singleCommonMiddlewareentry in place. Bring the branch up to date withdevby keeping the legacy command deleted rather than restoring a logging tweak inside it, and correctARCHITECTURE.mdso it no longer describes that removed code.Key Modifications
rorapi/management/commands/legacy*.py.LEGACY_ROR_DUMPsettings block,GRID_REMOVED_IDS, andLAUNCH_DARKLY_KEY.rorapi/common/features.pyandrorapi/v2/tests.py.CountryBucketclass fromrorapi/v2/models.py.ARCHITECTURE.md.Important Technical Details
retrieve_organizationno longer checksGRID_REMOVED_IDS. That list was empty, so the check never changed a response.CountryBucketremains inrorapi/common/models.py. The copy onrorapi/v2/models.pywas unused.rorapi/middleware/and the singleCommonMiddlewareentry are unchanged.devconflicted only onlegacyindexgrid.py, whichdevhad patched to logstr(e). The file stays deleted.Types of changes
Reviewer, please remember our guidelines: