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

(2965) Clean up leftovers from "ISPF in stealth mode" feature flag #2264

Conversation

CristinaRO
Copy link
Collaborator

Changes in this PR

  • Remove specs for ISPF in stealth mode
  • Remove unused scopes and methods not_ispf

Screenshots of UI changes

N/A

Next steps

  • Is an ADR required? An ADR should be added if this PR introduces a change to the architecture.
  • Is a changelog entry required? An entry should always be made in CHANGELOG.md, unless this PR is a small tweak which has no impact outside the development team.
  • Do any environment variables need amending or adding?
  • Have any changes to the XML been checked with the IATI validator? See XML Validation

@CristinaRO CristinaRO force-pushed the 2965-clean-up-some-leftover-mentions-of-isfp-in-stealth-mode branch from 85355b0 to c5f844b Compare November 29, 2023 15:21
@CristinaRO
Copy link
Collaborator Author

The feature flag allowing everything to do with ISPF to be hidden has
been removed in #2192

This spec has escaped our notice because it was not using the feature
flag by name. Instead, it relied on a proxy for the flag being on or off
in the form of the funds being loaded in the exports controller as
`Fund.all` or `Fund.not_ispf`.

Since the flag has been removed, there are no conditions under which the
funds being loaded on the exports page are restricted to non-ISPF only.
Scopes and methods to return all but ISPF funds, activities, and reports
are now unused. They were only in use when the app had a feature flag to
enable hiding everything to do with ISPF.

I did hesitate for a bit about keeping this code "just in case", but
ultimately we know that in general, unused code is a recipe for
confusion and an increased burden of maintenance, and it can always be
added back if it's needed in future.
@CristinaRO CristinaRO force-pushed the 2965-clean-up-some-leftover-mentions-of-isfp-in-stealth-mode branch from c5f844b to 20e3076 Compare November 29, 2023 17:10
@CristinaRO CristinaRO merged commit 4d63252 into develop Nov 30, 2023
4 checks passed
@CristinaRO CristinaRO deleted the 2965-clean-up-some-leftover-mentions-of-isfp-in-stealth-mode branch November 30, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants