[edx-code] Improvements to make the LMS (mostly) responsive

2017-11-02 Thread Andy Armstrong
Today we completed our initiative to make the LMS (mostly) use a responsive
design. This work is now available in the master branch, and will be made
available in the upcoming Hawthorn release.

If you're interested in the details, including before and after
screenshots, check out this wiki page:

https://openedx.atlassian.net/wiki/spaces/FEDX/pages/
269582365/Responsive+LMS+Update+-+November+2017

 - Andy

P.S. Tomorrow is my last day at edX, so please ask any questions in the
Slack #front-end channel.

-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBGH_MCOYkcxLL17A1dtQxRBWnhdXNcP3quqtomw7REgg%40mail.gmail.com.


[edx-code] FYI: Sass linting

2017-09-13 Thread Andy Armstrong
*TLDR; Sass linting is now available in edx-platform and can be used by any
IDAs.*

With all the upcoming work on our Sass and with the switch to Bootstrap,
the FedX team decided to implement a Sass linter for use within our
applications. We chose stylelint which, much like eslint, supports the
ability to have an npm package containing shared linting rules. We mostly
adopted the recommended set of rules, which are documented here:

   - CSS rules
   
<https://github.com/stylelint/stylelint/blob/master/docs/user-guide/rules.md#possible-errors>
   - SCSS-specific rules
   <https://www.npmjs.com/package/stylelint-scss#list-of-rules>

The Jenkins quality build for the edx-platform repo now runs the linter
automatically, so your PR will fail if your Sass changes don't follow the
rules. In addition, there is a new npm package that can be installed into
any IDA to provide the same validation:

https://github.com/edx/eslint-config-edx

Most code editors should pick up our eslint and stylelint configs so that
you can see violations as you work. For more details, see here:

https://openedx.atlassian.net/wiki/spaces/OpenDev/pages/92209202/Editors+IDEs

Please let me know if you have any questions.

Thanks,

 - Andy

P.S. We haven't yet fixed all of the Sass violations in edx-platform (there
are over 15,000 of them!), so as with most of our linters there is an
expected number of violations defined that can't be exceeded.

-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnAK1Y_EpcLJ-PHQufq361EE0kPN2zirAYs7BZ7Fu7V66Q%40mail.gmail.com.


Re: [edx-code] creating xblock query

2017-07-12 Thread Andy Armstrong
Check out this section of the XBlock tutorial:

https://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/devstack.html

Let us know if this doesn't help.

 - Andy

On Wed, Jul 12, 2017 at 8:23 AM, <deepali.wafel...@zeuslearning.com> wrote:

> I had installed open edx through virtualbox and vagrant on windows. how
> can i create xblock and then install it and enable it on edx studio?
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/5409ad47-f2ca-45fe-9f5e-af94606cfa66%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/5409ad47-f2ca-45fe-9f5e-af94606cfa66%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCdxcRJq4MfuZid17aHHzPP_EmjGeaQWmnqoV53ZVJvdQ%40mail.gmail.com.


Re: [edx-code] Adding Custom Problem Types

2017-05-25 Thread Andy Armstrong
Hi Rishabh,

There are a number of options depending upon what you wish to do. You can
create custom problems in Python or JavaScript as follows:

https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/custom_python.html
https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/custom_javascript.html

If those don't meet your needs, this page outlines your other options:

https://edx-developer-guide.readthedocs.io/en/latest/extending_platform/extending.html

I hope this helps.

 - Andy

On Wed, May 24, 2017 at 8:25 AM, Rishabh Verma <m...@rishabhverma.me> wrote:

> We run NavGurukul.org where are trying to teach software engineering to
> the underprivileged students in India who did not get a chance to attend
> college because of financial constraints. We are in the process of
> deploying EdX as our internal LMS.
>
> I am struggling with the problem of adding a custom problem type which can
> help me make a custom problem while creating a course from studio. I have
> not been able to get any online documentation to do so.
>
> Can you guys point me to the right resources?
>
> Thanks a ton :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/6c19b084-63e6-4465-aab5-4b8e5e11631d%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/6c19b084-63e6-4465-aab5-4b8e5e11631d%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCNXd6GELhTD_89xoiHog5F5GW5vExiOR%2BaLzVsymMueg%40mail.gmail.com.


Re: [edx-code] not able to find the link to apply custom site theme to website under django admin

2017-05-11 Thread Andy Armstrong
Hi Pradeep,

If you are using the Ficus release, this documentation should help you:

http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-ficus.master/configuration/sites/create_site.html

 - Andy

On Thu, May 11, 2017 at 3:05 AM, <pradeep.amarn...@kpisoft.com> wrote:

> I am unable to find the site theme in django admin login to enable custom
> theme to my website  ,can anyone please help
>
>
> Notice of Confidentiality.
>
>
>
> This e-mail is intended only for the person to whom it is addressed. If an
> addressing or transmission error has misdirected this e-mail, please notify
> the author by replying to this e-mail. If you are not the intended
> recipient you must not use, disclose, print or reply on this e-mail.
> The information contained in this email including any attachments is
> solely for the attention of the addressee(s) and may be confidential. Any
> review, distribution or copying of this email or any attachment is
> prohibited. Any views or opinions are solely those of the author and do not
> necessarily represent those of KPISOFT Pte Ltd or any of its affiliate
> companies unless specifically stated.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/112f706d-87cf-4181-bd9d-e5c7120da815%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/112f706d-87cf-4181-bd9d-e5c7120da815%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBvKF8yuYEgDqs_uM8Uc%3DRJTqxYenVw%2BW3YT88UjHoLqA%40mail.gmail.com.


Re: [edx-code] Lack of automated system response after passed exam

2017-05-05 Thread Andy Armstrong
Hi Mark,

Thanks for the suggestion. This is great feedback, and very much in line
with what we've been discussing internally. My team is working on an
improved welcome message which we were imagining would be built as a
unit-like way much as you suggest. Here's our current design:

https://openedx.atlassian.net/wiki/display/LEARNER/Architectural+design+for+welcome+messages

There have also been discussions about changing course updates to be
milestone-based to better support self-paced courses. We are thinking that
this would be a generalization of the welcome message support, where
'joined course' is just another milestone.

I'd love your feedback on the design we are proposing. In fact, your use
case (and others) would make a great addition to this proposal.

 - Andy

On Fri, May 5, 2017 at 6:13 AM, Mark Stenersen <mymarkdes...@gmail.com>
wrote:

> *"Automated system response after passed exam"*
>
> Problem
> In most other MOOC's that I have worked with i.e. Coursera, Canvas, WP
> Courseware just to mention a few, there are built in system responses to a
> range of user-progress events. The problem reveal itself especially at the
> end of the exam in openedx – there is absolutely no system response. You
> can scroll up the page and see that you have passed by looking at you
> scores (38/40 points), but this is not very user friendly in any way. In
> fact, our course iKomp at UiT the Arctic University of Norway has only one
> reoccurring complaint from our students: "Where is my course certificate?"
>
> The iKomp course has now 4500 enrolled students and almost 1700 of these
> have taken and passed the exam. Of these we have 400 questions regarding
> this issue.
>
>
> Solution
> Built in system for such events that admins can customise to desired
> events such as an ending module quiz, final exam etc. This can be
> implemented as a unit-like section that is revealed after checking your
> answers or as a popup or a modal dialog containing a message, picture and
> linke to progress, final grade and directly to your passing exam course
> certificate.
>
>
> Question
> - Is it a conscious design choice – not to have this in Openedx? If so,
> what are the arguments against this?
> - Are we the only ones questioning the lack of this kind of system
> responses?
> - Have anyone done something about this? Like an XBlock or like?
>
>
> Glad to hear from anyone and all
>
> Cheers for Openedx from
> Course team iKomp
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/42d88115-767f-4bd9-813c-b7dc607290d5%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/42d88115-767f-4bd9-813c-b7dc607290d5%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnD6GKMQpcrDoNH%2BD6YRmxP9TpcnZeTjUyqfdzKbJDz5gA%40mail.gmail.com.


[edx-code] FYI: new Open edX Development wiki space

2017-04-19 Thread Andy Armstrong
We recently performed an audit of our Confluence wiki spaces, and
discovered that a large amount of our best material is not being indexed by
search engines because access is only permitted to registered users. In
particular, both the Architecture and Engineering spaces had such a
restrictive access scheme.

For the Architecture space, we decided that the majority of the material
should be considered open, so we changed its permissions to allow anonymous
access. For the Engineering space, on the other hand, the majority of pages
were for edX internal use so we have changed its permissions to reflect
this.

With this change, there was a lot of great content that would have been
hidden, so we have moved it to a new open space for Open edX developers:

https://openedx.atlassian.net/wiki/display/OpenDev/Open+edX+Development

All the developer documentation we could find in other spaces has been
moved here, and so should now be accessible to everyone (search engines and
anonymous users alike). Our intention is to continue making as much wiki
content as we can default to open access.

Please let us know if you have any feedback on this change, or if you have
wiki pages that you have been using that are no longer available to you.

Thanks,

 - Andy

P.S. We are also in the process of deprecating the edx-platform GitHub
wiki, and so over the next few months that content will be migrating into
the new development wiki.
-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnDnbkUM8y_fovHbJ%3DHpsUOcHs%2BgPhfpH%3D%2BeihHaWwHE5A%40mail.gmail.com.


Re: [edx-code] what front-end framework is used

2017-04-18 Thread Andy Armstrong
I would strongly recommend React as that's the direction we're moving the
platform in.

 - Andy

On Tue, Apr 18, 2017 at 2:38 PM, chemseddine zaafrane <
chemseddine.zaafr...@gmail.com> wrote:

> Thanks Andy for your anwser. so if i wanted to use another framework
> besides Backbone what should it be in your opinion
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/7dbf58ad-442b-4010-8331-16d0e0f636ec%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/7dbf58ad-442b-4010-8331-16d0e0f636ec%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCtLW2wY369ncotwUxFWRFB69_ELGgyLGL9GNGukkwFKQ%40mail.gmail.com.


Re: [edx-code] how to refresh javascript

2017-04-13 Thread Andy Armstrong
Hi Omar,

On devstack, you should be able to refresh your page in the browser and the
updates will be picked up as there is no caching. For full
stack/production, you need to use the update_assets command to regenerate
all the static assets into the correct directory to be served up by Django:

https://openedx.atlassian.net/wiki/display/OpenOPS/Managing+OpenEdX+Tips+and+Tricks#ManagingOpenEdXTipsandTricks-Compileassetsmanually

In general, you should use devstack when making changes because it is a
much quicker turnaround for development. Once your changes are working
locally, you can then deploy them to your production environment.

I hope this helps.

 - Andy

On Thu, Apr 13, 2017 at 7:44 AM, Omar Sefiani <sefiani.om...@gmail.com>
wrote:

> Hello,
>
> I try to update a javascript file in edx/lms/static/js and i don't have a
> result in browser although i restart edx app.
>
> can you help me please?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/63ef6152-1caf-4a4e-8cd0-cf6f0c6b81c4%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/63ef6152-1caf-4a4e-8cd0-cf6f0c6b81c4%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnDgnvi5TcE%2BOGRkrG8%2BNqTtiAcwQ8v%3Dt1%3DwPKRdfNEwUg%40mail.gmail.com.


Re: [edx-code] Greek translation not shown

2017-03-07 Thread Andy Armstrong
Hi Kostas,

There is a bug that was introduced with handling JavaScript translations,
but I thought that was in a later release than Dogwood. It might be this
issue, or maybe it is something else:

https://openedx.atlassian.net/browse/TNL-6260

Let us know what you find out.

Thanks,

 - Andy

On Tue, Mar 7, 2017 at 4:46 AM, Kostas Stefanou <kste...@gmail.com> wrote:

> Dear All,
>
>
> I am using edx Dogwood release and I am facing the following issue:
>
>
> I have successfully downloaded greek translation files using transifex and
> set the language to my edx site.
>
>
> Most of the translations show up in greek as expected.
>
>
> The problem is that some of the translated strings do not show up,
> although they are translated from english to greek in the respective files
> and the .mo files are generated correctly.
>
>
> As far as I have seen, this happens to the bookmark-related strings,
> search-related strings and forum-related strings.
>
>
> Could it be something wrong with the use of the translation in the
> .underscore files or something related to that? In the Cypress release,
> these translations all work fine.
>
>
> Could it be a release-related problem? Could it be that transifex files
> work well in one release and not in the next one?
>
>
> Best Regards,
>
>
> Kostas.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/c3b40ca0-bcc1-4ee9-ba5b-dbd09593db49%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/c3b40ca0-bcc1-4ee9-ba5b-dbd09593db49%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnAP9x872F9R454vasO3e1caRn-RdBpSQhW1d_z1uq%3DWuQ%40mail.gmail.com.


Re: [edx-code] sutdio plugins

2017-02-27 Thread Andy Armstrong
Hi,

Studio doesn't provide much in the way of extensibility currently. The
technologies you list are all to support extensibility of the learner
experience. You can see the current mechanisms listed here:

https://openedx.atlassian.net/wiki/display/AC/Extending+edX+Platform

Having said this, we are very interested in making Studio more extensible.
There is an approved proposal for the mechanism to use here, and we are
starting to use it:

http://open-edx-proposals.readthedocs.io/en/latest/oep-0012.html

It would be very helpful if you could describe the kind of extensions you
are looking to make. Some may be simpler than others to introduce into the
platform. There's a list of some of the kinds of plugin capabilities we are
interested in here:

https://openedx.atlassian.net/wiki/display/AC/Feature+Plugins+for+edX+Platform

Let us know what you are looking to do and we can discuss further.

 - Andy

On Sun, Feb 26, 2017 at 9:38 PM, Lee Ching Kit <elo1992...@gmail.com> wrote:

> hi all
> whats the best way to extend the studio?
> javascriptl, xblocks, lti, or something else
>
> waiting for reply
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/1b427483-8493-418d-aae8-2f9cff68a88b%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/1b427483-8493-418d-aae8-2f9cff68a88b%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBZq3_vNPc7QwxDARxqBBQUvkYrBpPf1Ag_Hj61XndJEw%40mail.gmail.com.


Re: [edx-code] Discussion Component Error

2017-02-19 Thread Andy Armstrong
Hi Jeff,

Which version of the software are you using? I don't see this error message
in the code any more, so I can't diagnose exactly what is happening.

My first thought would be to look in the LMS log. In case you haven't done
this before, follow these instructions:

https://openedx.atlassian.net/wiki/display/OpenOPS/Common+Issues+and+How+to+Fix+Them#CommonIssuesandHowtoFixThem-LMSshowsamessage
"Therehasbeena500error"

Are you running this on devstack or fullstack? With devstack, you need to
make sure you have the comment service running:

https://openedx.atlassian.net/wiki/display/TNL/Discussions+FAQ

Let me know if any of this helps. If not, let us know the version of
software you are using, and how your are deploying it.

Thanks,

 - Andy

On Sun, Feb 19, 2017 at 11:16 AM, Jeff Salleh <jeff.sal...@gmail.com> wrote:

> hi all,
>
> When I go to Preview or View Live and click on the discussion, I will get
> the error *"We had some trouble loading the discussion. Please try
> again."*
>
> I can find anything in the logs that give and clue on what is happening.
>
> thanks,
> j.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/83f2a218-641f-41a7-937a-b48603d3d554%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/83f2a218-641f-41a7-937a-b48603d3d554%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBjVjxCDhQhmQEb41yzNrTqg_hY1SC9EOx6ht%3DrCOC4EA%40mail.gmail.com.


Re: [edx-code] Multi-lingual capabilities for courses

2017-02-16 Thread Andy Armstrong
That's an excellent point, Peter. Maybe we should be thinking about how to
integrate Transifex into the process right from the start. For many use
cases, that would be the best way to manage the translations, rather than
having to give translators access to Studio.

 - Andy

On Thu, Feb 16, 2017 at 10:13 AM, Peter Pinch <pdpi...@gmail.com> wrote:

> Please keep in mind the OLX impact of these options. We still want to be
> able to export and import multilingual courses (and maybe be able to
> facilitate the translation process outside of studio)
>
> On Feb 16, 2017, at 9:57 AM, Andy Armstrong <an...@edx.org> wrote:
>
> Hi Ignacio,
>
> Thanks for this excellent post. As you say, Open edX doesn't provide great
> support in this area as yet, and it is a very important area. We are
> creating a new team here at edX to work on i18n issues (lead by Bill
> DeRusha) so now is a great time to agree as a community on how to move
> forward.
>
> I think your suggestion of starting with XBlocks is a good one, and would
> be a simple place to start. However, as you say, the blocks need to be
> moved out of the platform which complicates matters. It also seems
> problematic that every single block needs to become locale aware. I have a
> couple of ways to approach this that are more general in nature, but which
> are obviously bigger in scope.
>
> My first idea to consider is to provide a new container block that
> conditionally renders different children based upon the user's locale. We
> already have a container block that hasn't been made available on edx.org,
> but which allows child blocks to be shown conditionally based upon certain
> criteria (mostly successful completion of problems at this point). We could
> either extend that block, or provide a new i18n-specific block that is
> better suited to that purpose (IMO the latter is the better option).
>
> My second idea is to use cohorted courseware which already provides a
> great way to handle conditional content. The challenge with this is that
> you'd have to put users into cohorts based upon their locale, which seems
> complicated. However, the UI for cohorted content is much cleaner than the
> conditional block, in that you can click on the "eye" icon on any block and
> change who it is displayed to. Maybe this could be extended to work both
> for cohorts and for locales. You could then imagine that the block could be
> shown with a flag indicating that it is only shown for a particular locale.
> A variant of this would be to have the units themselves be conditional, so
> you would add a copy of each unit per supported language. I don't know how
> well this would work because it would be hard to see that the various
> copies were correctly synchronized.
>
> Thinking this through some more, in both cases it would be very hard to
> manage a large course. Essentially every block would need to have multiple
> variants, and at that point maybe you are going through as much work as
> building the course multiple times. Would there ever be any shared content
> across these courses, or would every block have to be rebuilt for each
> language? Maybe the key point is that the core settings of the block is the
> same, and it is just any text settings that have to change. If there are
> more of the former than the latter, then your suggestion would scale better.
>
> I hope this is helpful. I think this is a very exciting area to be
> improving as we try to make Open edX available to the whole world.
>
> Thanks,
>
>  - Andy
>
> On Thu, Feb 16, 2017 at 8:57 AM, Ignacio Lozano <iloz...@emergya.com>
> wrote:
>
>> Motivation
>> Open edX has a large an heterogenuous student community. It is normal to
>> search a course in their language, sometimes even users preffer to take the
>> adventure of doing courses in foreign languages - then it is useful to see
>> the two versions of the course: in their language and in the foreign
>> language.
>>
>> The student option of swapping the course from one language to another
>> could be known as "*Multi-lingual courses*"
>>
>> Problem
>> Open edX hasn't a built-in multi-lingual courses capability. Therefore,
>> you have some workaround alternatives:
>>
>>- Design a course per language (if you have 2 languages, you will
>>design 2 courses)
>>   - Confusing for the student
>>   - Difficult to manage
>>   - ...
>>- Add HTML blocks with JavaScript code in order to hide one content
>>based on a language selector)
>>   - Difficult to manage in the CMS for designers
>>   - Only for HTML components
>>   - Static language and designer needs to have

Re: [edx-code] Multi-lingual capabilities for courses

2017-02-16 Thread Andy Armstrong
ti-lingual capability.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/7586983b-c5ab-4d71-8ebf-a0050861acc8%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/7586983b-c5ab-4d71-8ebf-a0050861acc8%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCLLnirBHXhP2z9r-Y6TcFY-7DzXTxO8cC7VgvHOYB6Uw%40mail.gmail.com.


[edx-code] Re: Proposal: OEP-12: Pluggable User Interfaces

2017-01-18 Thread Andy Armstrong
I've published a third and hopefully final draft of OEP-12 today, the
proposal for building pluggable user interfaces. Our plan is to start
development in the next couple of weeks, so now would be a great time to
add your feedback if you have any.

https://github.com/edx/open-edx-proposals/pull/34

Thanks,

 - Andy

On Fri, Dec 23, 2016 at 2:48 PM, Andy Armstrong <an...@edx.org> wrote:

> Hey folks,
>
> I've published a second draft of OEP-12, our proposal for building
> pluggable user interfaces for edX:
>
> https://github.com/edx/open-edx-proposals/pull/34
>
> There was a lot of great feedback from the first draft, and in particular
> we have now settled upon an approach we're calling Django Component Views
> (rather than the previous design that had us building upon XBlocks). I've
> added more use cases, more technical details, and also links to the recent
> hackathon project where Christina Roberts and I built working prototypes of
> each of the use cases.
>
> Happy holidays, and I look forward to hearing your feedback when we all
> return!
>
> Thanks,
>
>  - Andy
>
> --
>
> *Andy Armstrong*
>
> edX | UI Architect  | an...@edx.org
>
> 141 Portland Street, 9th floor
>
> Cambridge, MA 02139
> http://www.edx.org <http://www.edxonline.org/>
>
> [image:
> http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnDdLt_aOQ43_qypzOR%3DJ1N-MQS4kFtfQjtT39kpR%2B2qew%40mail.gmail.com.


Re: [edx-code] Problem reprovisioning my edx installation for theming

2016-12-10 Thread Andy Armstrong
Hi Nicolas,

That error is telling you that you've made changes to your local copy of
edx-platform. This might be a deliberate change that you made (maybe
related to Stanford theming), or it could be that you ran a script that
makes modifications (the most likely one of these would be if you
downloaded new translations). If you don't have any changes that you need
to preserve, you can cd into the edx-platform directory and revert the
changes before reprovisioning. I think it is possible to pass force=yes to
the script too, but I don't know that for sure as I've never used it.

I hope this helps.

 - Andy

On Fri, Dec 9, 2016 at 6:11 PM, <nicolas.m...@uchile.cl> wrote:

> Hello guys
>
> I'm trying to clone the stanford theme on my eucalyptus2 local virtual
> machine, but im having some ikssues when i try to reprovision the server,
> i'm getting the following isue:
>
> TASK: [edxapp | checkout edx-platform repo into {{ edxapp_code_dir }}]
>> 
>> failed: [localhost] => {"failed": true}
>> msg: Local modifications exist in repository (force=no).
>>
>
> can you help me please guys?
>
> I'm using this documentation: http://www.dangtrinh.com/2014/
> 03/edx-platform-using-standford-them-for.html
>
> Best regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/85318d5b-f6d2-4cf3-90e4-d471c3078c50%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/85318d5b-f6d2-4cf3-90e4-d471c3078c50%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnDhKB5cJ9iK78FTOrSJfs6sNDnXoQ86fb9T4jinJ35BfQ%40mail.gmail.com.


Re: [edx-code] Add the ability to log in with microsoft account

2016-11-17 Thread Andy Armstrong
Hi Levani,

Here's the documentation for enabling various types of third party
authentication:

http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/tpa/

I hope this helps.

 - Andy

On Thu, Nov 17, 2016 at 1:18 PM, Levani Melikishvili <levani9...@gmail.com>
wrote:

> I want to add the ability to authenticate using microsoft account on my
> edx application. I can't find any helpful tutorial that explains how to do
> this. Can anyone please tell where to start from or explain the process in
> few words?
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/911d0fdc-2a9b-4ced-b0e6-4bac30beb744%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/911d0fdc-2a9b-4ced-b0e6-4bac30beb744%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBsLk5%2BEFpbFBjxsAFZatugS%2BeHQYJ%3D0eK5p%3DwLOv32kQ%40mail.gmail.com.


Re: [edx-code] changes in css and templates

2016-11-13 Thread Andy Armstrong
I'd start by reading about comprehensive theming:

http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-eucalyptus.master/configuration/changing_appearance/theming/index.html

Note: you should never modify files in the staticfiles directory, as those
files are generated. You should override the Sass files with the changes
you want, and then the staticfiles will be updated automatically.

 - Andy


On Fri, Nov 11, 2016 at 6:07 PM, Luis Miguel Cabezas Granado <
luismiguel.cabe...@gmail.com> wrote:

> Hello,
>
>
> I'm making some changes in my installation Open EDX to make it look
> prettier. For this I am modifying css files in /edx/var/edxapp/staticfiles/
> and templates in /edx/app/edxapp/edx-platform/lms/templates/ directory.
>
> Everything works correctly but I'm sure it's not the right way.
>
> How should I make changes to CSS and templates?
>
> Thanks!
>
>
> Fullstack installation of EDX.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/e5d59f34-ff5d-489a-b6db-de9c4732932b%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/e5d59f34-ff5d-489a-b6db-de9c4732932b%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnAcLHjGeqet2r1RrCRzmH-KwBUWogDc-vy-rw%3DDkhhXLg%40mail.gmail.com.


Re: [edx-code] Forum error 500 after update

2016-11-13 Thread Andy Armstrong
This was a temporary issue on the master branch of edx-platform. If you
rebase you should find that this error goes away.

You can see the fix here: https://github.com/edx/edx-platform/pull/13928


On Fri, Nov 11, 2016 at 7:05 AM, <v...@osypets.com> wrote:

> Hello!
>
> After update I have error 500 on forums. In logs I see that comments
> service is disabled, but I'm not disable it. Please help!
>
> ```Nov 11 08:02:51 ip-172-31-31-48 
> [service_variant=lms][django.request][env:sandbox]
> ERROR [ip-172-31-31-48  29084] [base.py:256] - Internal Server Error:
> /courses/course-v1:ISCKON-UA+C-1+2016-09/discussion/forum/
> Traceback (most recent call last):
>   File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/core/handlers/base.py", line 132, in get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/utils/decorators.py", line 145, in inner
> return func(*args, **kwargs)
>   File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-
> packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
> return view_func(request, *args, **kwargs)
>   File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py",
> line 169, in wrapped_view
> return view_func(request, course_key, *args, **kwargs)
>   File "/edx/app/edxapp/edx-platform/lms/djangoapps/discussion/views.py",
> line 220, in forum_form_discussion
> user_info = user.to_dict()
>   File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py",
> line 60, in to_dict
> self.retrieve()
>   File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/models.py",
> line 65, in retrieve
> self._retrieve(*args, **kwargs)
>   File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/user.py",
> line 151, in _retrieve
> metric_tags=self._metric_tags,
>   File "/edx/app/edxapp/edx-platform/lms/lib/comment_client/utils.py",
> line 61, in perform_request
> raise CommentClientMaintenanceError('service disabled')
> CommentClientMaintenanceError: 'service disabled'
> Nov 11 08:02:51 ip-172-31-31-48 
> [service_variant=lms][request_cache][env:sandbox]
> WARNING [ip-172-31-31-48  29084] [__init__.py:66] - Could not retrieve the
> current request. A stub request will be created instead using
> settings.SITE_NAME. This should be used *only* in test cases, never in
> production!
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/69a3eb32-6cf0-47c5-8f84-e568096643ff%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/69a3eb32-6cf0-47c5-8f84-e568096643ff%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCeEq7oP8592Am%3DkTnWeJ8N_f6HZ_W%3D22Su4BqCKkm9Zg%40mail.gmail.com.


Re: [edx-code] Re: HTML Textbook in Advanced Settings

2016-10-27 Thread Andy Armstrong
Hi Thieme,

I couldn't find any documentation for this feature either. The best I could
find was this test code that demonstrates the JSON structure expected by
the advanced setting:

https://github.com/edx/edx-platform/blob/master/lms/djangoapps/staticbook/tests.py#L37

One thing to note is that the help text refers to tabs here, but I think
what it means is what Studio calls pages. Here's the documentation for how
you add a new HTML page to your course:

http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course/en/open-release-eucalyptus.master//course_assets/pages.html

Let me know if this helps.

Thanks,

 - Andy

On Thu, Oct 27, 2016 at 5:12 AM, Thieme Hennis <thiemehen...@gmail.com>
wrote:

> I would like to use this, but I really don't see any documentation about
> it. Can someone please respond? Does anyone know about this advanced
> setting? How to use it, and a syntax example?
>
> On Monday, 10 October 2016 19:48:40 UTC+2, Thieme Hennis wrote:
>>
>> hi there, I came across the following advanced setting, but cannot find
>> any information at all about it.
>>
>>- HTML Textbooks
>>HTML Textbooks
>>
>>[]
>>
>>For HTML textbooks that appear as separate tabs in the course, enter
>>the name of the tab (usually the title of the book) as well as the URLs 
>> and
>>titles of each chapter in the book.
>>
>>
>>
>>
>>
>>
>>
>> Anyone?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/e33fdbd8-5841-439d-addc-aed300018e4a%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/e33fdbd8-5841-439d-addc-aed300018e4a%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnA-8cnvyB08JOJ9CJf%3DPUzQO3LPiLOxyy9MyRDTHqPOdw%40mail.gmail.com.


Re: [edx-code] unable to post topics in discussions

2016-10-27 Thread Andy Armstrong
Hi Daniel,

Both of these errors are indicative of a server side error. Follow the
instructions here for diagnosing such errors by looking in the LMS log:

https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=88375372#CommonIssuesandHowtoFixThem-LMSshowsamessage%22Therehasbeena500error%22

I hope this helps.

 - Andy

On Thursday, October 27, 2016, Daniel <hetmant...@gmail.com> wrote:

> hello everyone, i have some problems with discussion module on my
> production stack openedx. im using eucalyptus.2 version.
>
> when im trying to post a message im getting an error (We had some trouble
> processing your request. Please try again.)
>
> when im tryion to load more discussions, which been created by users im
> getting an error (We had some trouble loading more threads. Please try
> again.)
>
> Could you help me with this?
>
> best regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/584cccd1-e32e-4163-bd0d-4321e30e1e9c%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/584cccd1-e32e-4163-bd0d-4321e30e1e9c%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnALRefX4iqQhkfZwzdqNkTqnehVvLBERrLaL2BH_Nswuw%40mail.gmail.com.


Re: [edx-code] Problem adding new fields to registration page

2016-10-06 Thread Andy Armstrong
Did you update the key setting in the various auth files? This blog post
has a good summary of the steps:

https://notestomyselfsite.wordpress.com/2016/03/24/generating-a-new-django-secret_key-for-open-edx/

I hope this helps.

 - Andy

On Thu, Oct 6, 2016 at 3:36 PM, <rkataoka@gmail.com> wrote:

> Hi all,
>
> I'm having issues to add new fields to registration fields. I followed the
> OpenedX guide (http://edx.readthedocs.io/projects/edx-installing-
> configuring-and-running/en/latest/configuration/
> customize_registration_page.html) using the Custom Form App (
> https://github.com/open-craft/custom-form-app). I also tried to create my
> own form, but I'm getting the same error:
>
> raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
>>
>> django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must
>>> not be empty.
>>
>>
> I've already tried to add a SECRET_KEY to python global_settings.py, but
> then I get a database error:
>
> django.db.utils.ConnectionDoesNotExist: The connection read_replica
>> doesn't exist
>
>
> I also already set a conf do my DATABASES variable, but I keep getting
> further errors, so I suppose I'm doing something wrong.
>
> These are the steps I'm taking:
>
> 1. Cloning custom_form_app;
> 2. Pip install;
> 3. Copying the custom_reg_form to /edx-platform
> 4. Adding it to ADDL_INSTALLED_APPS on lms.env.json
> 5. Editting common.py to enable custom reg forms, importing it and setting
> REGISTRATION_EXTENSION_FORM to ExtraInfoForm
>
> Am I missing something?
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/95b6434c-7242-4c30-a78e-77a3e6ca8c84%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/95b6434c-7242-4c30-a78e-77a3e6ca8c84%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCs-oCXpwfxWb0uX2qbxoRr8Bt%3DJyEJWoy_afkyphWpQw%40mail.gmail.com.


Re: [edx-code] How gettext in js files works?

2016-10-06 Thread Andy Armstrong
Sorry for the misinformation. It seems that this ticket is within a JIRA
project that is not open to the whole community. I've requested that a
design document be made available.

In the meantime, here's the most recent proposal from Braden MacDonald:

As an XBlock developer, my ideal solution would look like this:

1. Some simple tool can scan my XBlock's code and extract strings for both
python and JS and then output per-language files within my XBlock's python
module directory, e.g. drag_and_drop_v2/translations/eo/LC_MESSAGES/text.po
and text_js.po
2. The XBlock JavaScript Runtime API (which provides e.g. the
"runtime.handlerUrl(element, method)" method) should have three new
methods: gettext(), ngettext(), and getLocale()
3. The runtime should guarantee that calls to gettext() and ngettext() are
synchronous and non-blocking (i.e. that the appropriate strings .js file is
optimistically loaded).
4. The runtime should provide a polyfill for the JavaScript Intl API
<https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl>
(for
Safari and mobile browsers)

Notes:

Re #2: It is important to implement all three methods - gettext is obvious,
ngettext is very important, and getLocale() allows authors to use all rich,
browser-native i18n formatting tools for dates, numbers, etc. For example,
an XBlock in an accounting course can use

function myXBlock(runtime, element, args) {
const locale = runtime.getLocale();
// Format a currency amount like "USD $-1,234.56" in a
locale-appropriate way, e.g. "-$1,234.56" for en-US or
"-1.234,56\xa0$" for de-DEconst amount = 1234.56;
const usdAmountAsString = amount.toLocaleString(locale, {style:
"currency", currency: "USD"});
$(element).template(foo, {amtStr: usdAmountAsString});
}

In terms of LMS implementation, I think that at build time, the LMS static
pipeline should scan for all installed XBlocks, and then build compressed
.js string files - either:
1. a per-language file that combines the strings of all installed XBlocks
(but keeps them separate, grouped by the python package name that contains
them), or
2. a separate file per-language and per-XBlock-python-package. This is
probably the only way to go for installations with lots of installed
XBlocks like edx.org?

IMHO It is important to group the strings by python package and not by,
say, block type or XBlock entry point, because some XBlocks consist of
multiple related XBlocks within the same python package that will want to
share strings.

On Thu, Oct 6, 2016 at 10:11 AM, Juanan Pereira <jua...@gmail.com> wrote:

> Hi Andy,
>
> > You need to create a free JIRA/Confluence account to access our tickets.
> See this wiki page for details:
>
> Same problem here. I have a JIRA account and I am logged-in, yet I can't
> see the bug description due to permission issues.
>
> Greetings,
>
>Juanan
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/CALc7hq9JeM4dK5hWUXuNDTfumcRtjbCJDoLpqg8MnFgUCRZT6w%40mail.
> gmail.com
> <https://groups.google.com/d/msgid/edx-code/CALc7hq9JeM4dK5hWUXuNDTfumcRtjbCJDoLpqg8MnFgUCRZT6w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnA9TcU5KYL%2B-1%2BRFYbZNVAfKRYDyPwNrFsF%2BLdqPFMbPQ%40mail.gmail.com.


Re: [edx-code] Studio permissions

2016-09-26 Thread Andy Armstrong
Hi Ernesto,

This chapter of the documentation describes how you specify the team
members who can work with each course:

http://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/set_up_course/course_staffing.html

I hope this helps.

 - Andy


On Mon, Sep 26, 2016 at 12:41 PM, Ernesto Sanchez <sberne...@gmail.com>
wrote:

> Hi,
> how I can do to give studio users permissions only to see the courses I want 
> or in any given case
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/1abd9a27-3782-47b2-b860-50dcee161367%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/1abd9a27-3782-47b2-b860-50dcee161367%40googlegroups.com?utm_medium=email_source=footer>
> .
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnCdFqQgQjDGL6vVghNWtv9eHxG6RjB4xfYXKYCx1HMwTw%40mail.gmail.com.


Re: [edx-code] OEP Suggestion: course-wide JS and CSS

2016-08-15 Thread Andy Armstrong
Hi Martin,

Thanks for this. The use cases you describe are important, so it would be
great to talk through how it can be addressed. I'm not sure if this should
be handled as an OEP or not, so I posed that question in our OEP Slack
channel (https://openedx.slack.com/messages/open-edx-proposals/).

I have a few thoughts to add to your initial proposal:
 - I like the simplicity of what you are proposing. Using the XBlock
runtime's pre-existing loader makes a great deal of sense for the reasons
you laid out.

 - I think some of your use cases would be better handled through XBlock
dependencies. For example, IMO a complex feature like code syntax
highlighting should be associated with a particular XBlock, rather than
being added to an Advanced HTML block. Having the assets tied to the course
means that even if the block in question is removed, the assets would still
be loaded. It would be better to have them requested on-demand by only the
blocks that need them. Having said that, we don't have a mechanism in
XBlock to allow multiple blocks to share the same library.

 - I'd like to consider how such a mechanism should interact with AMD-style
loading. We have had some preliminary experimentation with combining
XBlocks with RequireJS, and I think it is important to take that into
account.

 - There are performance implications to loading a number of individual
files like this. Having said that, it would be difficult to have individual
courses contribute files to the static asset pipeline, since courses can be
created/imported after the LMS has been stood up.

 - We might want to make this feature be something that can be disabled if
a given installation is not comfortable with giving this power to its
authors. As you point out, the power is already there through multiple
other mechanisms, so maybe this isn't a concern.

Thanks,

 - Andy

On Fri, Aug 12, 2016 at 1:39 PM, Martin Segado 
wrote:

> Hi all,
>
> Please let me know if this is a good fit for an OEP and I'll put one
> together. Also let me know if you would also find such a feature useful!
>
> *Issue:* I and others would benefit from a way to load course-wide
> JavaScript and CSS assets. There are numerous use cases for this:
>
>- Logging custom events (this alone make the platform even more
>valuable for conducting research)
>- Consistently styling course content (e.g., by creating classes for
>things like callout boxes or image alignment)
>- Loading useful JS libraries for things like graphing or code syntax
>highlighting
>- Trying experimental features (e.g., a course-material search bar;
>again, complete with event logging for research)
>
> *Existing workaround:* It's possible to do this in today's platform, but
> it requires adding 

[edx-code] Re: FYI: removal of CoffeeScript from edx-platform

2016-06-23 Thread Andy Armstrong
Another thing to note: when you switch from an old branch, you may wind up
with generated JavaScript files living in the old coffee directories. This
can cause problems for tests that load files via wildcards. We recommend
using the following command to remove any such generated files:

git clean -fdx

See the manual page for more details: https://git-scm.com/docs/git-clean

Thanks,

 - Andy

On Thu, Jun 23, 2016 at 8:37 AM, Andy Armstrong <an...@edx.org> wrote:

> After some discussion we decided that it made sense to preserve the Git
> history as we make this transition. I've updated the wiki to describe the
> revised steps that will take this into account.
>
> https://openedx.atlassian.net/wiki/display/OPEN/How+to+
> convert+CoffeeScript+to+JavaScript
>
> Thanks,
>
>  - Andy
>
> On Wed, Jun 22, 2016 at 3:20 PM, Andy Armstrong <an...@edx.org> wrote:
>
>> As a hackathon project last week, we started the process of removing
>> CoffeeScript from edx-platform. Last year we formally announced that we
>> were deprecating CoffeeScript, and so now we are following through to
>> simplify life for front end developers.
>>
>> If you are interested in the process that we are using, it is documented
>> on the wiki here:
>>
>>
>> https://openedx.atlassian.net/wiki/display/OPEN/How+to+convert+CoffeeScript+to+JavaScript
>>
>> There are a couple of important ramifications of this work:
>> 1. Changes you make to CoffeeScript files will be hard to merge back, as
>> the files are being deleted in favor of their JavaScript versions.
>> 2. The history of changes will be lost as GitHub sees the JavaScript
>> versions as being new files.
>>
>> Please let me know if you have any questions or concerns.
>>
>> Thanks,
>>
>>  - Andy
>>
>> --
>>
>> *Andy Armstrong*
>>
>> edX | UI Architect  | an...@edx.org
>>
>> 141 Portland Street, 9th floor
>>
>> Cambridge, MA 02139
>> http://www.edx.org <http://www.edxonline.org/>
>>
>> [image:
>> http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]
>>
>
>
>
> --
>
> *Andy Armstrong*
>
> edX | UI Architect  | an...@edx.org
>
> 141 Portland Street, 9th floor
>
> Cambridge, MA 02139
> http://www.edx.org <http://www.edxonline.org/>
>
> [image:
> http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]
>



-- 

*Andy Armstrong*

edX | UI Architect  | an...@edx.org

141 Portland Street, 9th floor

Cambridge, MA 02139
http://www.edx.org <http://www.edxonline.org/>

[image:
http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566]

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/CAG2ZmnBiJUm5Jpr4Q-p3qN4C-pqd%2BxYt9S%3DV1D%3DiJ4%2BFwHn0ig%40mail.gmail.com.