Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Feb 23, 2024

Closes #1966

I considered storing floating and ephemeral IPs in a single externalIps table, but it was a bit annoying because the response for the floating IPs list is slightly different from the ExternalIp type — it doesn't have a kind field because there is only one kind. For some reason it felt better to add the kind in the instanceExternalIpList handler than to remove the kind for the floatingIp endpoint and friends. We can revisit this in the future if more complex mock functionality makes the two tables feel overcomplicated. Right now nothing ever writes to the ephemeral IPs table, though it probably should — when you create an instance it should add an ephemeral IP.

@vercel
Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Feb 23, 2024 3:15am

await page.getByRole('link', { name: 'Instances' }).click()
await page.getByRole('link', { name: 'db1' }).click()
await expect(page.getByRole('heading', { name: 'db1' })).toBeVisible()
await expect(page.getByText('192.168.64.64')).toBeHidden()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is all a bit silly but why not

@david-crespo david-crespo changed the title Return Floating IPs from mock instance external IPs endpoint Return floating IPs from mock instance external IPs endpoint Feb 23, 2024
@david-crespo david-crespo merged commit cb109cb into main Feb 23, 2024
@david-crespo david-crespo deleted the mock-floating-ip-table branch February 23, 2024 19:23
charliepark added a commit to oxidecomputer/omicron that referenced this pull request Feb 27, 2024
oxidecomputer/console@80f1167...e991ec5

* [e991ec5c](oxidecomputer/console@e991ec5c) oxidecomputer/console#1982
* [8e247f28](oxidecomputer/console@8e247f28) get rid of @oxide/gen alias
* [7d936d7e](oxidecomputer/console@7d936d7e) oxidecomputer/console#1981
* [b9a6051d](oxidecomputer/console@b9a6051d) delete unused app/table/headers
* [0b330247](oxidecomputer/console@0b330247) remove barrel files in app/pages
* [e53942ce](oxidecomputer/console@e53942ce) remove dot-path-fix vite plugin while we’re not using it
* [1af82bff](oxidecomputer/console@1af82bff) use vite-tsconfig-paths insead of my old manual thing
* [0f2411e8](oxidecomputer/console@0f2411e8) oxidecomputer/console#1962
* [bd64c620](oxidecomputer/console@bd64c620) oxidecomputer/console#1978
* [4388a92a](oxidecomputer/console@4388a92a) change pt-2 back to py-2 on AccordionItem
* [a0921bd6](oxidecomputer/console@a0921bd6) move msw handlers out of mock-api barrel file
* [6ab60b9b](oxidecomputer/console@6ab60b9b) update references to libs/ everywhere
* [9b4a6e0f](oxidecomputer/console@9b4a6e0f) move classed out of util barrel
* [d731de2b](oxidecomputer/console@d731de2b) oxidecomputer/console#1977
* [6c5883d9](oxidecomputer/console@6c5883d9) oxidecomputer/console#1976
* [6de56b15](oxidecomputer/console@6de56b15) oxidecomputer/console#1975
* [bbf019ee](oxidecomputer/console@bbf019ee) oxidecomputer/console#1973
* [b9c1892d](oxidecomputer/console@b9c1892d) oxidecomputer/console#1974
* [e2e56d87](oxidecomputer/console@e2e56d87) Revert `try .git-blame-ignore-revs`. don’t like it
* [1745a752](oxidecomputer/console@1745a752) try .git-blame-ignore-revs
* [4bfd2275](oxidecomputer/console@4bfd2275) oxidecomputer/console#1971
* [cb109cba](oxidecomputer/console@cb109cba) oxidecomputer/console#1968
* [264e2cd1](oxidecomputer/console@264e2cd1) oxidecomputer/console#1969
* [3ec255f9](oxidecomputer/console@3ec255f9) Revert `Shuffle @oxide/pagination files  (oxidecomputer/console#1970)`
* [3eebf491](oxidecomputer/console@3eebf491) oxidecomputer/console#1970
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.

Floating IPs should be returned by mock instanceExternalIpList

2 participants