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

V2/low level methods #1042

Merged
merged 20 commits into from
Jan 26, 2024
Merged

V2/low level methods #1042

merged 20 commits into from
Jan 26, 2024

Conversation

MariusWirtz
Copy link
Collaborator

@MariusWirtz MariusWirtz commented Jan 26, 2024

Successor of #1036

Creation of new low level methods to standardize how TM1py services line up with the API entities. New services include

Threads
Users
Sessions
AuditLogs
MessageLogs
TransactionLogs
Configuration
Loggers
Testing remains in the Server and Monitor tests, but should be moved eventually

v12 connections will show warnings of deprecated modules.
v11 connections will not be allowed to call v12 only methods via required version decorators

Some minor methods remain in the Server module until they find a better home.

Nice work @rclapp and @adscheevel!!
The separation into low-level and high-level services is very tidy. Glad to have this for the v2 release.
Please feel free to take a final look and approve before we merge.

I had to rebase on the current master. Therefor the separate PR

rclapp and others added 19 commits January 26, 2024 11:19
…12. Output is similar to TM1Top, jobs can be canceled.
* Initial Commit. Added two functions create_blank_dimension and create_blank_cube_and_dimensions in Utils/Utils.py

* require admin utils

adding other admin types require

* NotAdmin exceptions

exceptions for other admin types

* other admin types

adding other admin types

* other admin types property

* updated admin requirements

* updated admin requirements

* updated admin requirements

* update admin requirements

* updated admin requirements

* update admin requirements

* admin requirement update

* Update HierarchyService.py

* Update Utils.py

other NotAdmin exceptions

* Update ServerService bug fix

* Update MonitoringService require admin bug fix

* Update SecurityService require admin bug fix

* Update CellService require admin bug fix

* Update User other admin properties

* Update HierarchyService bug fix

update_or_create_hierarchy_from_dataframe requires both data and ops admin

* added update_or_create function in ElementService.py

* Update ElementService.py

solved exists function bug

* Add allow_empty_alias argument to get_elements_df

Fixes #999

* Fix allow_empty_alias mixed edge case

* Update Chore.py

Add: execution_path. Idea: 1 chore as a dictionary with its called processes (in order). Not parameters and no other information. Useful for building a tree of chores ==> processes ==> their called processes.

* Update Chore.py

* Update TM1py/Services/RestService.py

Co-authored-by: Marius Wirtz <MariusWirtz2@gmail.com>

* Update TM1py/Services/RestService.py

Co-authored-by: Marius Wirtz <MariusWirtz2@gmail.com>

* Update TM1py/Services/RestService.py

Co-authored-by: Marius Wirtz <MariusWirtz2@gmail.com>

* Hotfix require_admin decorator

* New extract_cellset_axes_raw_async and extract_cellset_cells_raw_async were added to extract raw data from TM1 asynchronously. Demonstrate efficiency in retrieving large datasets with > 1M cells and can be further used to create asynchronous execute_mdx.

extract_cellset_axes_cardinality was also added to retrieve cellset cardinality

* Drop api/v1/ in url in async functions

* Hotfix add missing slash in is_admin

* Fix issue 997

Remove obsolete and unexpected records in shaped df response on
execute_view, execute_mdx functions

* Logger methods

* loggers bug fix 1

* logger_get_all_names refactor

* logger functions rename

* Created new function clear_from_df()

* Added docsting in function clear_from_df() and changed some variable names

* Reverted auto formatting

* Minor changes in docstring and switched to mdxpy Functions to build the query in clear_from_df

* Rename to clear_with_dataframe

Successor of #1026

* clear_with_dataframe verify column uniqueness

* Update CellService.py

Add get_values()

* Refactor get_values

use mdxpy in get_values

* Fix return_async_id parameter

* LoggerService initial commit

* LoggerService to __init__.py

* LoggerService to TM1Service.py

* Update ServerService.py

remove logger functions that are now part of separate LoggerService

* indent fix

* AuditLogService require admin update

* ConfigurationService require admin update

* MessageLogService require admin update

* TransactionLogService require admin update

---------

Co-authored-by: Enis Isufi <Enis.Isufi@deutschebahn.com>
Co-authored-by: Karen Wong <wongkayankaren@gmail.com>
Co-authored-by: MariusWirtz <MariusWirtz2@gmail.com>
Co-authored-by: Wim Gielis <wim.gielis@gmail.com>
Co-authored-by: VVM <vvmits98@gmail.com>
Co-authored-by: Enis Isufi <enis_isufi88@hotmail.com>
Co-authored-by: Ray Price <raeldor@gmail.com>
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