Skip to content

[ENG-9820]: cleanup and delete dead ES2 code#11688

Open
ihorsokhanexoft wants to merge 54 commits into
CenterForOpenScience:feature/pbs-26-13from
ihorsokhanexoft:feature/ENG-9820
Open

[ENG-9820]: cleanup and delete dead ES2 code#11688
ihorsokhanexoft wants to merge 54 commits into
CenterForOpenScience:feature/pbs-26-13from
ihorsokhanexoft:feature/ENG-9820

Conversation

@ihorsokhanexoft

@ihorsokhanexoft ihorsokhanexoft commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Ticket

https://openscience.atlassian.net/browse/ENG-9820

Purpose

After removing v1/v2 search endpoints, there is a lot of unused code that can be removed

Changes

Remove legacy code

IT IS HIGHLY RECOMMENDED TO REVIEW THIS PULL REQUEST COMMIT BY COMMIT

Vlad0n20 and others added 30 commits April 7, 2026 11:29
…NG-9822

[ENG-9822] - add required_metadata_template to API
…-consolidation

[ENG-9829][ENG-9830] Add `should_index_for_search` field to CedarMetadataTemplate
@Vlad0n20

Vlad0n20 commented May 8, 2026

Copy link
Copy Markdown
Contributor

Clean, well-scoped deletion. One missed cleanup: CoreScopes.SEARCH = 'search_read' at oauth_scopes.py:136 is left as a dead definition after its only usages are removed — should be deleted alongside ADVANCED_SEARCH. Also worth confirming whether /explore/ and /activity/ need infrastructure-level redirects before this merges. Everything else looks good.

…ature/ENG-9831

[ENG-9831] Cedar metadata record creation/deletion in share for collection submission
@ihorsokhanexoft

ihorsokhanexoft commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Clean, well-scoped deletion. One missed cleanup: CoreScopes.SEARCH = 'search_read' at oauth_scopes.py:136 is left as a dead definition after its only usages are removed — should be deleted alongside ADVANCED_SEARCH. Also worth confirming whether /explore/ and /activity/ need infrastructure-level redirects before this merges. Everything else looks good.

But CoreScopes.SEARCH is used in BaseSearchView that many views inherit from:
image

So why should we remove it?

@Vlad0n20 Vlad0n20 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@adlius adlius changed the base branch from feature/es2-consolidation to feature/pbs-26-13 July 6, 2026 14:09
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