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

Column def pro #1272

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
mitosheet: make column defs pro
  • Loading branch information
aarondr77 committed Mar 14, 2024
commit 9e06b2a464e7d181b1f4d18da3f3c6710458c1db
5 changes: 4 additions & 1 deletion mitosheet/mitosheet/steps_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from mitosheet.transpiler.transpile_utils import get_default_code_options
from mitosheet.types import CodeOptions, ColumnDefinintion, ColumnDefinitions, MitoTheme, ParamMetadata
from mitosheet.updates import UPDATES
from mitosheet.user.utils import is_enterprise, is_running_test
from mitosheet.user.utils import is_enterprise, is_pro, is_running_test
from mitosheet.utils import NpEncoder, dfs_to_array_for_json, get_default_df_formats, get_new_id, is_default_df_names
from mitosheet.step_performers.utils.user_defined_function_utils import get_user_defined_importers_for_frontend, get_user_defined_editors_for_frontend
from mitosheet.step_performers.utils.user_defined_function_utils import validate_and_wrap_sheet_functions, validate_user_defined_editors
Expand Down Expand Up @@ -253,6 +253,9 @@ def __init__(
if not is_running_test() and not is_enterprise() and self.user_defined_editors is not None and len(self.user_defined_editors) > 0:
raise ValueError("editors are only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans")

if not is_running_test() and not is_pro() and column_definitions is not None:
raise ValueError("column definitions are only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you wanna update the error message to say Pro?


# The version of the public interface used by this analysis
self.public_interface_version = 3

Expand Down