Skip to content

Fix api url lookups #4714

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

Merged
merged 2 commits into from
May 27, 2020
Merged

Fix api url lookups #4714

merged 2 commits into from
May 27, 2020

Conversation

russcam
Copy link
Contributor

@russcam russcam commented May 26, 2020

This PR fixes a couple of bugs in the ApiUrlsLookup generator:

  • use the endpoint filename when comparing against the list
    of high level APIs to ignore.
  • a bug in the CSharp method name generation
    where Index is removed from the name of the SimulateIndexTemplate
    method in the Indices namespace. Removing this causes a collision
    with SimulateTemplate

russcam added 2 commits May 26, 2020 16:03
This commit fixes a bug in the ApiUrlsLookup generator
to use the endpoint filename when comparing against the list
of high level APIs to ignore.
This commit fixes a bug in the CSharp method name generation
where Index is removed from the name of the SimulateIndexTemplate
method in the Indices namespace. Removing this causes a collision
with SimulateTemplate
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@russcam russcam merged commit d36aabb into 7.x May 27, 2020
@russcam russcam deleted the fix/api-url-lookups branch May 27, 2020 01:05
@github-actions
Copy link
Contributor

The backport to 7.7 failed:

The process 'git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-7.7 7.7
# Navigate to the new working tree
cd .worktrees/backport-7.7
# Create a new branch
git switch --create backport-4714-to-7.7
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick d36aabbd999ce0029d530c368839217fc939d0d7
# Push it to GitHub
git push --set-upstream origin backport-4714-to-7.7
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-7.7

Then, create a pull request where the base branch is 7.7 and the compare/head branch is backport-4714-to-7.7.

@github-actions
Copy link
Contributor

The backport to master failed:

The process 'git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-master master
# Navigate to the new working tree
cd .worktrees/backport-master
# Create a new branch
git switch --create backport-4714-to-master
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick d36aabbd999ce0029d530c368839217fc939d0d7
# Push it to GitHub
git push --set-upstream origin backport-4714-to-master
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-master

Then, create a pull request where the base branch is master and the compare/head branch is backport-4714-to-master.

russcam added a commit that referenced this pull request May 27, 2020
* Exclude lookups for ignored high level APIs

This commit fixes a bug in the ApiUrlsLookup generator
to use the endpoint filename when comparing against the list
of high level APIs to ignore.

* Do not remove Index from SimulateIndexTemplate method name

This commit fixes a bug in the CSharp method name generation
where Index is removed from the name of the SimulateIndexTemplate
method in the Indices namespace. Removing this causes a collision
with SimulateTemplate

(cherry picked from commit d36aabb)
russcam added a commit that referenced this pull request May 27, 2020
* Exclude lookups for ignored high level APIs

This commit fixes a bug in the ApiUrlsLookup generator
to use the endpoint filename when comparing against the list
of high level APIs to ignore.

* Do not remove Index from SimulateIndexTemplate method name

This commit fixes a bug in the CSharp method name generation
where Index is removed from the name of the SimulateIndexTemplate
method in the Indices namespace. Removing this causes a collision
with SimulateTemplate

(cherry picked from commit d36aabb)
@russcam
Copy link
Contributor Author

russcam commented May 27, 2020

ported to master in eed3a38
ported to 7.7 in 3afd3c2

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.

2 participants