Skip to content
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

🪟 🔧 🧹 Migrate attempt bytesSynced to totalStats.bytesEmitted and cleanup AttemptDetails component #16126

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

edmundito
Copy link
Contributor

What

Resolves #15333

  • Migrates the use of ReadAttempt.bytesSynced to ReadAttempt.totalStats.bytesEmitted
  • Cleans up the way the component renders the | in between each stat

@edmundito edmundito added the area/frontend Related to the Airbyte webapp label Aug 30, 2022
@edmundito edmundito requested a review from a team as a code owner August 30, 2022 14:25
@github-actions github-actions bot added the area/platform issues related to the platform label Aug 30, 2022
Copy link
Contributor

@krishnaglick krishnaglick left a comment

Choose a reason for hiding this comment

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

LGTM!

font-size: 12px;
line-height: 15px;
color: colors.$grey;
}

.truncate {
.details > *:not(:last-child)::after {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

<span>{formatBytes(attempt?.bytesSynced)} | </span>
<div className={classNames(styles.container, className)}>
<div className={styles.details}>
<span>{formatBytes(attempt?.totalStats?.bytesEmitted)}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Unsure if it's from another PR but formatBytes lacks an || 0 so you can get NaN bytes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in #15795

@edmundito edmundito merged commit 6418b32 into master Sep 2, 2022
@edmundito edmundito deleted the edmundito/update-attemptdetails branch September 2, 2022 14:17
letiescanciano added a commit that referenced this pull request Sep 5, 2022
* master: (47 commits)
  Add email to identify users analytics call (#16327)
  🎉 Source Amazon Ads: improve `config.start_date` validation (#16191)
  Add comments about intermediate state emission (#16262)
  MySQL Source : Standardize spec.json for DB connectors that support log-based CDC replication (#16216)
  MSSQL Source : Standardize spec.json for DB connectors that support log-based CDC replication (#16215)
  Hide a bunch more destination with potential unsecure API access (#16320)
  Skip unit tests when run-tests is false (#16267)
  Hide Destination connections from UI (#16310)
  Add scheduled task to clean up old files from workspace (#16247)
  Source Google Analytics v4: Re-name google analytics connector (#16306)
  🐛 Source Facebook Marketing: remove "end_date" from config if empty value (re-implement #16096) (#16222)
  Fix github action syntax (#16277)
  Re-name google analytics cionnectors (#16287)
  Bump Airbyte version from 0.40.3 to 0.40.4 (#16275)
  Hide ES and Redis destination connectors from Cloud (#16276)
  15700  add tests for PokeAPI (#15701)
  Add ProtocolVersion to StandardDefs (#16237)
  🪟 🔧 🧹 Migrate attempt `bytesSynced` to `totalStats.bytesEmitted` and cleanup `AttemptDetails` component (#16126)
  Improve behavior of password input field (#16011)
  Improve airbyte-metrics support in the Helm chart (#16166)
  ...
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
…cleanup `AttemptDetails` component (airbytehq#16126)

* Migrate from bytesSynced to bytesEmitted

* Cleanup separator in AttemptDetails

* Fix notation in AttemptDetails scss
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
…cleanup `AttemptDetails` component (airbytehq#16126)

* Migrate from bytesSynced to bytesEmitted

* Cleanup separator in AttemptDetails

* Fix notation in AttemptDetails scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Front-End: Replace deprecated AttemptRead field access with updated fields
2 participants