Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.1] client/web: Use perforce cid in tree URL#54121

Merged
keegancsmith merged 1 commit into
5.1from
backport-54051-to-5.1
Jun 27, 2023
Merged

[Backport 5.1] client/web: Use perforce cid in tree URL#54121
keegancsmith merged 1 commit into
5.1from
backport-54051-to-5.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Links to "Browse files @CID" will now directly go to the URL pointing to the CID instead of the Commit SHA.

Test plan

  • Tested manually
  • Builds should pass

<!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles -->

Backport 0116fb6 from #54051

Links to "Browse files @CID" will now directly go to the URL pointing to
the CID instead of the Commit SHA.

(cherry picked from commit 0116fb6)
@github-actions github-actions Bot requested a review from indradhanush June 26, 2023 05:51
@github-actions github-actions Bot added cla-signed backports perforce-changelists Issues around Changelist Ids for Perforce depots backported-to-5.1 labels Jun 26, 2023
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@keegancsmith

Copy link
Copy Markdown
Member

@indradhanush build is failling

@indradhanush

Copy link
Copy Markdown
Contributor

@keegancsmith Rebuilt without cache and it passed. :D

const revisionType =
window.context.experimentalFeatures.perforceChangelistMapping === 'enabled' &&
node?.sourceType === RepositoryType.PERFORCE_DEPOT
isPerforceChangelistMappingEnabled() && node?.sourceType === RepositoryType.PERFORCE_DEPOT

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.

Can we use isPerforceDepotSource(node?.sourceType) here?

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.

Makes sense. I'll fix this in main.

@keegancsmith keegancsmith merged commit 715b157 into 5.1 Jun 27, 2023
@keegancsmith keegancsmith deleted the backport-54051-to-5.1 branch June 27, 2023 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backports cla-signed perforce-changelists Issues around Changelist Ids for Perforce depots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants