Skip to content

Crest v1.4.1 code changes #51

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dhruvilbhatt-crest
Copy link

Crest v1.4.1 code changes

  • Introduced threading mechanism to fetch query results faster. Thread count can be configured from 'Additional Parameters' page.
  • Databricks Warehouse will now start automatically if not running while running databricksquery command.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@alexott alexott requested a review from Copilot March 11, 2025 09:06
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR updates the Crest add-on to version 1.4.1 by introducing a threading mechanism for faster query result fetching and automating the start of the Databricks Warehouse during query execution. Additional configuration parameters have been added and documentation updated to reflect these enhancements.

Reviewed Changes

File Description
app/appserver/static/cancel_button.js Adds cancel run UI functionality with error handling and success pop-ups.
app/README.md Updates release notes, version numbers, and documentation for configuration changes.
app/appserver/static/js/build/custom/auth_select_hook.js Enhances field toggling logic based on the dbquery configuration.
app/README/ta_databricks_settings.conf.spec Adds an [additional_parameters] section for new configuration parameters.
app/README/ta_databricks_account.conf.spec Introduces new keys for configuring Databricks query settings.
app/README/alert_actions.conf.spec Revises parameter descriptions for the launch_notebook alert action.

Copilot reviewed 83 out of 83 changed files in this pull request and generated 3 comments.


var runDetailsTable = mvc.Components.get("databricks_run_table");
var jobDetailsTable = mvc.Components.get("databricks_job_table");
customRenderer = TableView.BaseCellRenderer.extend({
Copy link
Preview

Copilot AI Mar 11, 2025

Choose a reason for hiding this comment

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

Declare 'customRenderer' using var, let, or const to avoid polluting the global namespace.

Suggested change
customRenderer = TableView.BaseCellRenderer.extend({
var customRenderer = TableView.BaseCellRenderer.extend({

Copilot uses AI. Check for mistakes.

var run_ex_status = array[2];

if(run_ex_status !== "Running" && run_ex_status !== "Initiated" && run_ex_status !== "Pending"){
$td.html("<div class='ar_containter'><div class='cancel_button_disabled' value='Cancel'>Cancel Run</div></div>");
Copy link
Preview

Copilot AI Mar 11, 2025

Choose a reason for hiding this comment

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

[nitpick] Typo in the CSS class name 'ar_containter'; consider correcting it to 'ar_container' for clarity.

Suggested change
$td.html("<div class='ar_containter'><div class='cancel_button_disabled' value='Cancel'>Cancel Run</div></div>");
$td.html("<div class='ar_container'><div class='cancel_button_disabled' value='Cancel'>Cancel Run</div></div>");

Copilot uses AI. Check for mistakes.

* Minor bugfix.

# RELEASE NOTES VERSION 1.4.0
* Introduced threading mechanism to fetch query results faster. Thread count can be configured from 'Addidtional Parameters' page.
Copy link
Preview

Copilot AI Mar 11, 2025

Choose a reason for hiding this comment

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

Typo in 'Addidtional Parameters'; please change it to 'Additional Parameters'.

Suggested change
* Introduced threading mechanism to fetch query results faster. Thread count can be configured from 'Addidtional Parameters' page.
* Introduced threading mechanism to fetch query results faster. Thread count can be configured from 'Additional Parameters' page.

Copilot uses AI. Check for mistakes.

@alexott
Copy link
Contributor

alexott commented Mar 13, 2025

@dhruvilbhatt-crest can you sign the CLA - it's required to merge the PR

@dhruvilbhatt-crest
Copy link
Author

Hi @alexott

I just signed the CLA, but it looks like it's taking some time to reflect.

Screenshot 2025-03-13 at 3 22 19 PM

@alexott
Copy link
Contributor

alexott commented Mar 13, 2025

Yes, as I remember it takes some time. Can you also check comments & suggestions from Copilot?

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.

3 participants