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

chore: preparing release 0.101.0 #727

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .ci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ SUPERSET_OAUTH2_CLIENT_SECRET: StkPwE5GzPuyH4Rp
SUPERSET_ROW_LEVEL_SECURITY_XAPI_GROUP_KEY: xapi_course_id
SUPERSET_SECRET_KEY: WlgA6QSQKCUNGD9PAaji0JHY
SUPERSET_XAPI_DASHBOARD_SLUG: openedx-xapi
ASPECTS_VERSION: 0.100.0
ASPECTS_VERSION: 0.101.0
DOCKER_IMAGE_OPENEDX: edunext/openedx-aspects:{{ASPECTS_VERSION}}
DOCKER_IMAGE_OPENEDX_DEV: edunext/openedx-aspects-dev:{{ASPECTS_VERSION}}
ASPECTS_ENABLE_EVENT_BUS_CONSUMER: true
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.101.0 - 2024-04-17

### [0.101.0](https://github.com/openedx/tutor-contrib-aspects/compare/v0.100.0...v0.101.0) (2024-04-17)

#### Features

* install platform plugin aspects v0.7.0 ([5dcb82e](https://github.com/openedx/tutor-contrib-aspects/commit/5dcb82eac0ee52c19c90d9ad698ee7adb198647f))

#### Bug Fixes

* do not check for main schema when translating datasets ([5561793](https://github.com/openedx/tutor-contrib-aspects/commit/5561793116947fe199dcf32d3823a8c55841fae7))
* link filters to the course_name dataset ([b3a0ba9](https://github.com/openedx/tutor-contrib-aspects/commit/b3a0ba9136785be9de266e469c2ae7a53202e4d5))
* use virtual datasets ([78e2a23](https://github.com/openedx/tutor-contrib-aspects/commit/78e2a239ed0623a1c1c892cdf9d3236035658833))

## v0.100.0 - 2024-04-16

### [0.100.0](https://github.com/openedx/tutor-contrib-aspects/compare/v0.99.0...v0.100.0) (2024-04-16)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[bumpversion]
current_version = 0.100.0
current_version = 0.101.0
commit = False
tag = False
2 changes: 1 addition & 1 deletion tutoraspects/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Expose some package metadata.
"""

__version__ = "0.100.0"
__version__ = "0.101.0"
Original file line number Diff line number Diff line change
Expand Up @@ -57,37 +57,15 @@ def create_assets():
path = os.path.join(root, file)
with open(path, "r") as file:
asset = yaml.safe_load(file)
if not asset:
continue

# Process the asset directly
if FILE_NAME_ATTRIBUTE not in asset:
raise Exception(f"Asset {asset} has no {FILE_NAME_ATTRIBUTE}")
file_name = asset.pop(FILE_NAME_ATTRIBUTE)

# Find the right folder to create the asset in
for asset_name, folder in ASSET_FOLDER_MAPPING.items():
if asset_name in asset:
write_asset_to_file(asset, asset_name, folder, file_name, roles)
break
process_asset(asset, roles)

with open(ASSETS_FILE_PATH, "r") as file:
extra_assets = yaml.safe_load(file)

if extra_assets:
# For each asset, create a file in the right folder
for asset in extra_assets:
if FILE_NAME_ATTRIBUTE not in asset:
raise Exception(f"Asset {asset} has no {FILE_NAME_ATTRIBUTE}")
file_name = asset.pop(FILE_NAME_ATTRIBUTE)

# Find the right folder to create the asset in
for asset_name, folder in ASSET_FOLDER_MAPPING.items():
if not asset_name in asset:
continue

write_asset_to_file(asset, asset_name, folder, file_name, roles)
break
process_asset(asset, roles)

import_databases()
import_assets()
Expand All @@ -97,6 +75,18 @@ def create_assets():
create_rls_filters()


def process_asset(asset, roles):
if FILE_NAME_ATTRIBUTE not in asset:
raise Exception(f"Asset {asset} has no {FILE_NAME_ATTRIBUTE}")
file_name = asset.pop(FILE_NAME_ATTRIBUTE)

# Find the right folder to create the asset in
for asset_name, folder in ASSET_FOLDER_MAPPING.items():
if asset_name in asset:
write_asset_to_file(asset, asset_name, folder, file_name, roles)
return


def import_databases():
"""Import databases from settings"""
databases = {{SUPERSET_DATABASES}}
Expand Down
Loading