Skip to content

Conversation

@rileyajones
Copy link
Contributor

Motivation for features / changes

The dashboard will not load when inColab is true because the runs data cannot be fetched.

Googlers see b/278706604 for why this is important

Technical description of changes

When inColab is true POST requests are automatically converted to GET requests see tensorboard/webapp/webapp_data_source/tb_http_client.ts. This conversion assumes the provided body is of type FormData, however, when I open sourced runs_data_source in #6318 I was unaware of this conversion taking place and didn't modify the format of the post request body.

Screenshots of UI changes

Before:
image

After:
image

Detailed steps to verify changes work correctly (as executed by you)

  1. Start tensorboard
  2. Navigate to http://localhost:6006?tensorboardColab#timeseries
  3. Assert that the dashboard loads

Alternate designs / implementations considered

I could have updated the conversion happening in tensorboard/webapp/webapp_data_source/tb_http_client.ts to accept JSON bodies

@rileyajones rileyajones requested a review from bmd3k April 18, 2023 17:41
@rileyajones rileyajones marked this pull request as ready for review April 18, 2023 17:41
@rileyajones rileyajones merged commit 9227457 into tensorflow:master Apr 18, 2023
rileyajones added a commit that referenced this pull request Apr 18, 2023
rileyajones added a commit that referenced this pull request Apr 18, 2023
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…ta (tensorflow#6334)

## Motivation for features / changes
The dashboard will not load when `inColab` is true because the runs data
cannot be fetched.

Googlers see b/278706604 for why this is important

## Technical description of changes
When `inColab` is true `POST` requests are automatically converted to
`GET` requests see
[tensorboard/webapp/webapp_data_source/tb_http_client.ts](https://github.com/tensorflow/tensorboard/blob/master/tensorboard/webapp/webapp_data_source/tb_http_client.ts).
This conversion assumes the provided body is of type `FormData`,
however, when I open sourced `runs_data_source` in tensorflow#6318 I was unaware
of this conversion taking place and didn't modify the format of the post
request body.

## Screenshots of UI changes
Before:

![image](https://user-images.githubusercontent.com/78179109/232854635-c95e2047-0203-4677-ac1f-98962f034faf.png)

After:

![image](https://user-images.githubusercontent.com/78179109/232854359-57c0b7e2-a1da-45c0-b948-a9139271b380.png)


## Detailed steps to verify changes work correctly (as executed by you)
1) Start tensorboard
2) Navigate to http://localhost:6006?tensorboardColab#timeseries
3) Assert that the dashboard loads

## Alternate designs / implementations considered
I could have updated the conversion happening in
[tensorboard/webapp/webapp_data_source/tb_http_client.ts](https://github.com/tensorflow/tensorboard/blob/master/tensorboard/webapp/webapp_data_source/tb_http_client.ts)
to accept JSON bodies
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
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