openedx-unsupported / xblock-utils Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Some blocks might require different human-readable name depending on boilerplate. The simplest approch to allow that is to add an optional parameter label
to NestedXBlockSpec
constructor so that it would override block's STUDIO_LABEL
.
This repo's integration tests still use the bok-choy framework, which openedx/public-engineering#13. The bok-choy repository is no longer being maintained, and it will soon be archived.
Once the bok-choy repo is archived, the tests should continue working, as we will not be removing the package's releases from PyPI. For long-term maintainability of this repo, though, the tests should eventually be upgraded to a non-bok-choy testing framework or removed.
StudioContainerWithNestedXBlocksMixin
requires descendant block to provide it's own css rules for buttons, so if it gails to do that buttons look like this:
The css rules to avoid that would likely be simple: https://github.com/open-craft/xblock-group-project-v2/blob/master/group_project_v2/public/css/group_project_edit.css#L2-L14
From the logs here: https://travis-ci.org/edx/xblock-utils/jobs/312058687
There are a bunch of exceptions like these:
Traceback (most recent call last):
File "/home/travis/build/edx/xblock-utils/xblockutils/base_test.py", line 44, in setUp
super(SeleniumXBlockTest, self).setUp()
File "/home/travis/build/edx/xblock-utils/.tox/django18/src/xblock-sdk/workbench/test/selenium_test.py", line 18, in setUp
super(SeleniumTest, self).setUp()
File "/home/travis/build/edx/xblock-utils/.tox/django18/lib/python2.7/site-packages/bok_choy/web_app_test.py", line 125, in setUp
self.driver.set_window_position(0, 0)
File "/home/travis/build/edx/xblock-utils/.tox/django18/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 1010, in set_window_position
return self.set_window_rect(x=int(x), y=int(y))
File "/home/travis/build/edx/xblock-utils/.tox/django18/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 1061, in set_window_rect
"height": height})['value']
File "/home/travis/build/edx/xblock-utils/.tox/django18/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 311, in execute
self.error_handler.check_response(response)
File "/home/travis/build/edx/xblock-utils/.tox/django18/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 237, in check_response
raise exception_class(message, screen, stacktrace)
WebDriverException: Message: POST /session/0474914b-e6a3-44f3-b2f2-e9f9e59a30a0/window/rect did not match a known command
I fixed it locally by pinning selenium==3.6
, but I haven't submitted a PR since I'm not sure how it should be fixed upstream.
@antoviaque can you add an AUTHORS file to this repo?
catalog-info.yaml
file existsI am wondering why this repository is licensed under AGPLv3 while XBlock is licensed under Apache 2.
Is there any specific reason?
Itβs caused an issue on the xblock-officemix repo here.
Currently the test suite does not run successfully out of the box. It looks like there are a few problems.
var/workbench.log
file in order for the test suite to not fail.
workbench.settings
file from the xblock-sdk repo which has what looks to be a complex and unnecessary logging config.A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.