We really need a configuration file validator. Maybe we can use
marshmallow—with some multikey validation steps—and thus centralise all
schema validation.

JSON-schema is also an option, although I think certain rules need more
complicated logic then JSON-schema facilitates out-of-the-box.

Not having serious validation is a real annoyance to developers and ops who
are unfamiliar with the openedx codebase IMHO :\


Samuel Marks
http://linkedin.com/in/samuelmarks

On Mon, Jun 26, 2017 at 7:29 PM, Sivakumar <[email protected]>
wrote:

> Had the same issue in my Eucalyptus deployment, your solution helped me
> resolve it. But right now, as a student, I am not able to add a new post in
> the discussion forum for some reason. "Add a Post" is not visible for
> students, whereas it is visible for staff.
>
> How do I make it available for students?
>
> Thanks.
>
> On Monday, June 19, 2017 at 9:42:54 PM UTC+5:30, Robert R wrote:
>>
>> Great.  Thanks.
>>
>> On Sun, Jun 18, 2017 at 4:18 AM, Samuel Marks <[email protected]> wrote:
>>
>>> Hi Robert,
>>>
>>> Yeah, solved it. - Traced it down to:
>>>
>>> def in_preview_mode():
>>>     """
>>>     Returns whether the user is in preview mode or not.
>>>     """
>>>     hostname = get_current_request_hostname()
>>>     preview_lms_base = settings.FEATURES.get('PREVIEW_LMS_BASE', None)
>>>     return bool(preview_lms_base and hostname and hostname.split(':')[0] == 
>>> preview_lms_base.split(':')[0])
>>>
>>> Turns out my PREVIEW_LMS_BASE was set with the same value as my LMS_BASE
>>> .
>>> On Sun, Jun 18, 2017 at 12:01 AM, Robert Raposa <[email protected]> wrote:
>>>
>>>> Hello Samuel.
>>>>
>>>> Did you figure this out? Have you published the content?
>>>>
>>>> Here is a checklist of activities:
>>>> http://edx.readthedocs.io/projects/open-edx-ca/en/latest/
>>>> releasing_course/course_launching.html
>>>>
>>>> Good luck.
>>>>
>>>> Robert
>>>>
>>>> On Jun 6, 2017, at 1:05 AM, Samuel Marks <[email protected]> wrote:
>>>>
>>>> My course isn't public for some reason. Ficus deployment. In
>>>> *https://<cms>/settings/advanced/course-v1:<course_id>* 'Invitation
>>>> Only' is set to `false`, and I set the course start date and enrollment
>>>> start date in *https://<cms>/settings/details/course-v1:<course_id>*
>>>> to yesterday.
>>>>
>>>> It doesn't show in the course list, and opening the absolute
>>>> *https://<lms>/courses/course-<course_id>/about* link gives a "Page
>>>> not found" message (with a 404 HTTP status code). That same link works when
>>>> I'm logged in as a super user.
>>>>
>>>> (if it makes a difference, I've turned off email activation by setting
>>>> SKIP_EMAIL_VALIDATION in the FEATURES key of
>>>> */edx/app/edxapp/lms.env.json* and */edx/app/edxapp/cms.env.json*)
>>>>
>>>> How do I make it public?
>>>>
>>>> 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/ms
>>>> gid/edx-code/028619e9-5c25-4c00-a6c2-84f3e650e071%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/edx-code/028619e9-5c25-4c00-a6c2-84f3e650e071%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "General Open edX discussion" group.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/edx-code/A3DFCFC1-F017-4E8A-9CAC-544936E1A749%40edx.org
>>>> <https://groups.google.com/d/msgid/edx-code/A3DFCFC1-F017-4E8A-9CAC-544936E1A749%40edx.org?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>> --
>>> 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/ms
>>> gid/edx-code/CAMfPbcZDXmL2eOJh_LuAJJfZnNgph2s-XOo4QjF93tJAXX
>>> Semg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/edx-code/CAMfPbcZDXmL2eOJh_LuAJJfZnNgph2s-XOo4QjF93tJAXXSemg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>>
>> --
>>
>> *Robert Raposa*
>>
>> edX | Software Architect  | [email protected]
>>
>> 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]
>>
>
> This e-mail (and any attachments), is confidential and may be privileged.
> It may be read, copied and used only by the intended recipients.
> Unauthorised access to this e-mail (or attachments) and disclosure or
> copying of its contents or any action taken in reliance on it is unlawful.
> Unintended recipients must notify the sender immediately by e-mail or phone
> and delete it from their system without making any copies or disclosing it
> to a third person. TeachEdison Solutions Private Limited reserves the
> right to store, monitor and review the content of all messages sent to or
> from this email address.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "General Open edX discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/edx-code/e53f2a5b-ad23-47f9-b75c-a7bfb9b8dab0%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/e53f2a5b-ad23-47f9-b75c-a7bfb9b8dab0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMfPbcYQ7GS4hQZEW4TZr%3DXkdALcA8f8-oHYpRc03yfPes5OwQ%40mail.gmail.com.

Reply via email to