You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/06/01 16:53:59 UTC

[GitHub] [airflow] bbovenzi commented on a diff in pull request #24083: Reduce grid view API calls

bbovenzi commented on code in PR #24083:
URL: https://github.com/apache/airflow/pull/24083#discussion_r887031233


##########
airflow/www/static/js/grid/utils/gridData.js:
##########
@@ -17,18 +17,5 @@
  * under the License.
  */
 
-import camelcaseKeys from 'camelcase-keys';
-
 export const areActiveRuns = (runs = []) => runs.filter((run) => ['queued', 'running', 'scheduled'].includes(run.state)).length > 0;
-
-export const formatData = (data, emptyData) => {
-  if (!data || !Object.keys(data).length) {
-    return emptyData;
-  }
-  let formattedData = data;
-  // Convert to json if needed
-  if (typeof data === 'string') formattedData = JSON.parse(data);
-  // change from pascal to camelcase
-  formattedData = camelcaseKeys(formattedData, { deep: true });
-  return formattedData;
-};
+export const somethingElse = '';

Review Comment:
   Oh, i forgot to push one commit



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org