openedx-unsupported / edx-analytics-dashboard Goto Github PK
View Code? Open in Web Editor NEWDashboard to display course analytics to course teams
License: GNU Affero General Public License v3.0
Dashboard to display course analytics to course teams
License: GNU Affero General Public License v3.0
Readthedocs update needed for section 1.2 "Other edX Resources." The current section refers to the Partner Portal which has been deprecated, and also to courses that are no longer available on edx.org in section 1.2.3.
I have removed all mention of the Partner Portal throughout section 1.2 and have updated section 1.2.3 to reflect the current courses that edX offers to course teams on edx.org.
NOTE - I am a 2U employee who has not used GitHub before; if there is another way that I should be submitting these changes to this section of readthedocs, please let me know the appropriate process, thanks.
Below is content that should take the place of the current section 1.2 content:
1.2. Other edX Resources
Course teams, researchers, developers, learners: the edX community includes groups with a range of reasons for using the platform and objectives to accomplish. To help members of each group learn about what edX offers, reach goals, and solve problems, edX provides a variety of information resources.
To help you find what you need, browse the edX offerings in the following categories.
The Open edX Portal
System Status
Resources for Course Teams
Resources for Researchers
Resources for Developers
Resources for Open edX
Resources for Learners
All members of the edX community are encouraged to make use of the resources described in this preface. We welcome your feedback on these edX information resources. Contact the edX documentation team at [email protected].
1.2.1. The Open edX Portal
The Open edX Portal is the destination for all edX users to learn about the edX roadmap, as well as hosting, extending the edX platform, and contributing to Open edX. In addition, the Open edX Portal provides product announcements, the Open edX blog, and other rich community resources.
All users can view content on the Open edX Portal without creating an account and logging in.
To comment on blog posts or the edX roadmap, or subscribe to email updates, you must create an account and log in. If you do not have an account, follow these steps.
1.2.1.1. Release Announcements by Email
To receive and share product and release announcements by email, you can subscribe to announcements on the edX portal site.
You will now receive email messages when new announcements of the types you selected are posted.
1.2.2. System Status
For system-related notifications from the edX operations team, including outages and the status of error reports. On X, you can follow @edxstatus.
Current system status and the uptime percentages for edX servers, along with the X feed, are published on the edX Status web page.
1.2.3. Resources for Course Teams
Course teams include faculty, instructional designers, course staff, discussion moderators, and others who contribute to the creation and delivery of courses on edx.org or edX Edge.
1.2.3.1. Designing, Building and Running an edX Course Program
The courses in the Designing, Building, and Running an edX Course Program provide foundational knowledge about using the edX platform. These courses are available on edx.org.
1.2.3.1.1. Designing an edX Course
Designing a Course with edX is grounded in pedagogical principles to ensure that a course’s design is aligned with learning theory and best practices in online learning.
1.2.3.1.2. Building an edX Course
Building a Course with edX provides an in-depth look at edX Studio. It covers using Studio to create a course, and adding a wide variety of rich content and assessments.
1.2.3.1.3. Running an edX Course
Running a Course with edX covers the process of launching a course, as well as the processes that need to be followed during a course run. Additionally, it covers how to improve a course with edX Insights, and the steps to take when a course’s run is ending.
1.2.3.2. Documentation
Documentation for course teams is available on the docs.edx.org web page.
These guides open in your web browser. The left side of each page includes a Search docs field and links to the contents of that guide. To open or save a PDF version, select v: latest at the lower right of the page, then select PDF.
Note
If you use the Safari browser, be aware that it does not support the search feature for the HTML versions of the edX guides. This is a known limitation.
1.2.3.3. Email
To receive and share information by email, course team members can:
1.2.3.4. Wikis and Web Sites
The edX product team maintains public product roadmaps on the Open edX Portal.
1.2.4. Resources for Researchers
At each partner institution, the data czar is the primary point of contact for information about edX data. To set up a data czar for your institution, contact your edX partner manager.
Data for the courses on edx.org and edX Edge is available to the data czars at our partner institutions, and then used by database experts, statisticians, educational investigators, and others for educational research.
Resources are also available for members of the Open edX community who are collecting data about courses running on their sites and conducting research projects.
1.2.4.1. Documentation
The edX Research Guide is available on the docs.edx.org web page. Although it is written primarily for data czars and researchers at partner institutions, this guide can also be a useful reference for members of the Open edX community.
The edX Research Guide opens in your web browser, with a Search docs field and links to sections and topics on the left side of each page. To open or save a PDF version, select v: latest at the lower right of the page, and then select PDF.
Note
If you use the Safari browser, be aware that it does not support the search feature for the HTML versions of the edX guides. This is a known limitation.
1.2.4.2. Discussion Forums and Email
Researchers, edX data czars, and members of the global edX data and analytics community can post and discuss questions in our public research forum: the openedx-analytics Google group.
Important
Please do not post sensitive data to public forums.
Data czars who have questions that involve sensitive data, or that are institution specific, can send them by email to [email protected] with a copy to your edX partner manager.
1.2.4.3. Wikis
The edx-tools wiki lists publicly shared tools for working with the edX platform, including scripts for data analysis and reporting.
1.2.5. Resources for Developers
Software engineers, system administrators, and translators work on extending and localizing the code for the edX platform.
1.2.5.1. Documentation
Documentation for developers is available on the docs.edx.org web page.
Note
If you use the Safari browser, be aware that it does not support the search feature for the HTML versions of the edX guides. This is a known limitation.
1.2.5.2. GitHub
These are the main edX repositories on GitHub.
Additional repositories are used for other projects. Our contributor agreement, contributor guidelines and coding conventions, and other resources are available in these repositories.
1.2.5.3. Community Discussions
The Community Discussions page in the Open edX Portal lists different ways that you can ask, and answer, questions.
1.2.5.4. Wikis and Web Sites
The Open edX Portal is the entry point for new contributors.
The edX Engineering team maintains an open Confluence wiki, which provides insights into the plans, projects, and questions that the edX Open Source team is working on with the community.
The edx-tools wiki lists publicly shared tools for working with the edX platform, including scripts and helper utilities.
1.2.6. Resources for Open edX
Hosting providers, platform extenders, core contributors, and course staff all use Open edX. EdX provides release-specific documentation, as well as the latest version of all guides, for Open edX users. The following documentation is available.
Note
If you use the Safari browser, be aware that it does not support the search feature for the HTML versions of the edX guides. This is a known limitation.
1.2.7.1. Documentation
The EdX Learner’s Guide and the Open edX Learner’s Guide are available on the docs.edx.org web page. Because learners are currently only guided to this resource through the course, we encourage course teams to provide learners with links to these guides as needed in course updates or discussions.
1.2.7.2. In a Course
All edX courses have a discussion forum where you can ask questions and interact with other students and with the course team: select Discussion. Many courses also offer a wiki for additional resources and materials: select Wiki.
Other resources might also be available, such as a course-specific Facebook page or Twitter feed. Be sure to check the Home page for your course as well as the Discussion and Wiki pages.
From time to time, the course team might send email messages to all students. While you can opt out of these messages, doing so means that you can miss important or time-sensitive information. To change your preferences for course email, select edX or edX edge at the top of any page. On your dashboard of current courses, locate the course and then select Email Settings.
1.2.7.3. From edX
To help you get started with the edX learning experience, edX offers a course (of course!). You can find the edX Demo course on the edX web site. EdX also maintains a list of frequently asked questions and answers.
If you still have questions or suggestions, you can get help from the edX support team: select Contact at the bottom of any edX web page or send an email message to [email protected].
For opportunities to meet others who are interested in edX courses, check the edX Global Community meetup group.
Hi,
We are trying to install insights and are having issues with Bower dependecies. We have tried it with different combinations but it always fails at Bower dependencies. We are installing this on a fresh AWS EC2 instance with Ubuntu 12.04.
Below is the Error Log we get:
Error-Log.txt
We suspect this is an issue with the verisions of dependecies.
Please help us on this issue.
Regards
Srikanth Kanuri
[email protected]
Hi,
Can you please guide me regarding the Prerequisites for installing AWS Bitnami Open Edx Analytics Dashboard. Also if Pipeline, Insights are to be installed at the same time for the Analytics Dashboard to work on AWS Bitnami Open Edx?
In order to advance implementation of both OEP-45: Configuring and Operating Open edX and deprecation of the configuration repository, we would like to switch devstack from using primarily Docker images built with Ansible code from the configuration repository to images built from Dockerfiles in each service's repository. We hope this will also help simplify Tutor by providing better base images to derive from, with fewer workarounds and duplicated code blocks required in Tutor.
A/C
Abstract
Node 16's support will end on September 11, 2023. So we have to upgrade node JS to v18 before that.
Extras
Project should use .nvmrc
to have a consistent node version
We have to update Readme accordingly.
Hello edx team,
I have seen that some strings are on transifex but aren't needed.
We should remove all node_modules related strings from there :)
Thanks a lot for your work !
I use the last commit,I have some issue
npm install
./node_modules/.bin/bower install
bower extra-resolution Unnecessary resolution: cldrjs#0.3.10
pip install -q -r requirements/base.txt --exists-action w
Could not find a tag or branch '0d7847f9dfa2281640527b4dc51f5854f950f9b7', assuming commit.
Could not find a tag or branch 'd45d0bd8d64c69531be69178b9505b5d38806ce0', assuming commit.
Command /usr/bin/python -c "import setuptools, tokenize; file='/edx/app/analytics-dashboard/src/i18n-tools/setup.py'; exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" develop --no-deps failed with error code 1 in /edx/app/analytics-dashboard/src/i18n-tools
Storing debug log for failure in /home/dmt/.pip/pip.log
make: *** [requirements] Error 1
When i visit http://localhost:9000/test/auto_auth/ to create and login as a new user and i got the picture below:
then clicked the log in i got the page not find error
My question is how to create a new user then log in to the insights ?
I think the problem is probably about the oauth2.
Thank you for helping me !!
HI, Clinton
i reinstall edx-analytics-dashboard but i got the message below:
jeremy@jeremy-VirtualBox:~/edx-analytics/edx-analytics-dashboard$ make develop
npm install
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No README data
./node_modules/.bin/bower install
bower extra-resolution Unnecessary resolution: cldrjs#0.3.10
pip install -q -r requirements/base.txt --exists-action w
Could not find a version that satisfies the requirement django-appconf==0.6 (from -r requirements/base.txt (line 3)) (from versions: 1.0.1)
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external to allow).
No distributions matching the version for django-appconf==0.6 (from -r requirements/base.txt (line 3))
make: *** [requirements] Error 1
Maybe Older packages missing from pypi and there is a link:
getpelican/pelican#1522
django-compressor/django-appconf#16
Thank you so much !!
pip install -q -r requirements/base.txt --exists-action w
Could not find a tag or branch 'ece149d706aaf812afd6b39872cf01fd294b2038', assuming commit.
Could not find a tag or branch '0d7847f9dfa2281640527b4dc51f5854f950f9b7', assuming commit.
Could not find a tag or branch 'd45d0bd8d64c69531be69178b9505b5d38806ce0', assuming commit.
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_dmt/bpython/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-HSfsVv-record/install-record.txt --single-version-externally-managed --compile failed
Who can help me? Thanks
I am getting this issue while installing this extension with Tutor
Cloning https://github.com/openedx/edx-analytics-dashboard.git to /tmp/pip-req-build-e_wjy8jc
ERROR: Command errored out with exit status 1:
command: /openedx/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-e_wjy8jc/setup.py'"'"'; file='"'"'/tmp/pip-req-build-e_wjy8jc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-e_wjy8jc/pip-egg-info
cwd: /tmp/pip-req-build-e_wjy8jc/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/opt/pyenv/versions/3.8.12/lib/python3.8/tokenize.py", line 392, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-e_wjy8jc/setup.py'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 22.1.1 is available.
You should consider upgrading via the '/openedx/venv/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c cd /openedx/requirements/ && touch ./private.txt && pip install -r ./private.txt' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:13.2.2 /root/.local/share/tutor/env/build/openedx
As you can see here: https://github.com/edx/configuration/blob/open-release/ginkgo.1/playbooks/roles/insights/tasks/main.yml#L66
The insights playbook from the Ginkgo open release still tries to install the bower components, but there's no bower.json file for it to install from.
Currently I am unable to update pylintrc to the generated version defined in edx_lint because it was previously manually edited. And also not touched since 2017 😱
Work should be done to upgrade pylintrc properly and resolve the errors that happen because of the upgrade.
Five strings in analytics-dashboard and one string in analytics-dashboard-js were not in English to be translated to other languages, but were actually in Turkish. This comes from an accident where an English-to-Turkish translator accidentally pushed their translations to the English language, instead of the Turkish language. These translations were then pushed back into the Github Repository. And when new translations were requested, instead of providing English to all translators, it provided certain lines in Turkish instead.
We have identified the source of the problem, and have the solution. As part of that solution we have decided to rescind all access to translating from English-to-English to reduce any future errors of this type. In addition, I will be dedicating some time in the next couple of work days to carrying out the solution to this problem.
Under the effort of Django 4.2 Upgrade, complete all of the following steps to complete the upgrade.
Django 4.2
tox.ini
, and GitHub Actions
workflows.Django
version in the requirements to Django==4.2
make upgrade
to update all dependencies for Django 4.2
.Django 4.2
and Django 3.2
to contain backward compatibility.Django 3.2
.As we have moved to Native Docker image for our Insights Service and it has been working fine for quite time, we feel confident now that we can stop the image building process for our old Ansible based Image and remove all the code related to it from configuration
repo.
A/Cs:
I want to be analytical to work without logging in
(I've installed the analysis tools and edx to one server, https://github.com/edx/edx-analytics-pipeline/wiki/Running-the-analytics-backend-locally)
Did I do something wrong?
I installed
edx/edx-analytics-data-api
edx/edx-analytics-pipeline
edx/edx-analytics-data-api-client
edx/edx-analytics-dashboard widthout error
refer to Running the analytics backend locally
(https://github.com/edx/edx-analytics-pipeline/wiki/Running-the-analytics-backend-locally)
but I can't login after "./manage.py runserver 0.0.0.0:9000"
I set Oauth2 and /edx-analytics-dashboard/analytics_dashboard/settings/local.py
What Is the problem??
I have installed complete edx devstack setup. I can open studio, LMS and eCommerce successfully.
I have also installed analytics pipeline. Services running successfully
I have cloned analytics dashboard, executed npm start
and manage.py runserver
- Django successfully. Django is running fine as I can open Insights. When I click on login, it takes me on
http://127.0.0.1:18000/login?next=/oauth2/authorize/
When I log in using edx credentials ([email protected] / edx - what I use to login to the Studio and LMS) I get following message after login.
unauthorized_client An unauthorized client tried to access your resources.
The url of this page is "http://127.0.0.1:18000/oauth2/authorize/confirm"
I have generated client ID for analytics in django lms admin and mentioned this in insights.yml
Please help to fix this issue as I am not able to use Analytics Dashboard.
In order to have support for Django 4.2, we first need to run tests on Django 4.2 in the insights service. For updating CI, we should run tox and GitHub actions modernizers.
Tox Modernizer: tox_moderniser_django42.py
Github Action Modernizer: github_actions_modernizer_django42.py
### A/C
- [x] Run tests with Django 4.2
- [x] Fix all test failures with Django 4.2 (if any)
- [ ] After merging, ask the owning squad to add Django 4.2 tests in branch protection rules
This repo's acceptance 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 acceptance 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.
Hi, clintonb. I'm fl_meng in IRC. Yesterday I ask you a question. You give me a pdf which named "Open edX Analytics" and I read it. Now, I'm confused how to assemble these module correctly?
howard@howard-VirtualBox:~/edx-analytics/edx-analytics-dashboard$ make develop
npm install
./node_modules/.bin/bower install
bower extra-resolution Unnecessary resolution: cldrjs#0.3.10
pip install -q -r requirements/base.txt --exists-action w
Command "/usr/bin/python -c "import setuptools, tokenize; file='/home/howard/edx-analytics/edx-analytics-dashboard/src/edx-analytics-data-api-client/setup.py'; exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" develop --no-deps" failed with error code 1 in /home/howard/edx-analytics/edx-analytics-dashboard/src/edx-analytics-data-api-client
make: *** [requirements] Error 1
There are some problem when i executed the command make develop, can anyone to help me!? Please, Thank you so much!
The django.core.cache.backends.memcached.MemcachedCache backend is removed so we now are replacing this with PymemcacheCache
in all of our IDAs, so we need to replace this for insights also.
This service is deployed with GoCD.
https://docs.djangoproject.com/en/4.2/releases/4.1/#features-removed-in-4-1
Things to be done:
These are the config related changes which we will do:
One more thing to add:
direct-dependency
. We will enable edx_django_utils.cache.disable_forced_cache_miss_for_none
waffle switch for them from their admin panel link to docHi everyone,
Im using bitnami openedx to deploy course online
I install insight analystic tool follow the guide:
https://wiki.bitnami.com/Applications/Bitnami_Open_edX#How_to_install_edX_Analytics_Dashboard.3f
https://github.com/edx/edx-analytics-dashboard
https://openedx.atlassian.net/wiki/pages/viewpage.action?spaceKey=AN&title=Configuring+Insights+for+Open+ID+Connect+SSO+with+LMS
I set OAUTH_ENFORCE_SECURE = false in lms.env.json to use http
But unfortunately when i login
-edx.abc.com:9000
-Click login button
The issue alert "invalid_request The requested redirect didn't match the client settings"
The LMS setting
url: http://edx.abc.com/
redirect: http://edx.abc.com/complete/edx-oidc
Please help me
Thanks so much
An,
I used the bitnami image to run on a VPS and after cloning the git repository i am getting error while executing make develop.
`lunr.js#0.7.1 analytics_dashboard/static/bower_components/lunr.js
pip install -q -r requirements/base.txt --exists-action w
Command "/opt/edx-20160414-2/python/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-V6VIP3/regex/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-yJZgpt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-V6VIP3/regex/
make: *** [requirements] Error 1
`
please give me some help
Django 4.2
upgrade issue #1488I am the Hung Tu the translator listed first in the following code. I want to remove my name from that publicly available code. Can someone help me do so? Thank you.
edx-analytics-dashboard/analytics_dashboard/conf/locale/vi/LC_MESSAGES/djangojs.po
Hi,I got the following error while executing make develop command. I have edx installed and running on system. what am I missing to do? I tried in -d (debug mode) but no further information i can get.
edxapp@moocs:~/edx-analytics$ make develop
npm install
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No README data
./node_modules/.bin/bower install
bower cldrjs extra-resolution Unnecessary resolution: cldrjs#0.4.0
pip install -q -r requirements/base.txt --exists-action w
You are using pip version 6.0.8, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Command "/edx/app/edxapp/venvs/edxapp/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-u_m0V1/libsass/setup.py';exec(compile(getattr(tokenize, 'ope
n', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-kARC69-record/install-record.txt --single-version-externally-managed --com
pile --install-headers /edx/app/edxapp/venvs/edxapp/include/site/python2.7" failed with error code 1 in /tmp/pip-build-u_m0V1/libsass
make: *** [requirements] Error 1
Thnak you very much for your help.
Irfan
npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN edx-analytics-dashboard@ No license field.
./node_modules/.bin/bower install
/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:71
throw error;
^
Error: Unable to parse /home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/.bowerrc: Unexpected token } in JSON at position 163
at parse (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:64:21)
at /home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:95:20
at Array.forEach (native)
at json (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:87:14)
at rc (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/util/rc.js:34:13)
at Config.load (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/node_modules/bower-config/lib/Config.js:16:20)
at readCachedConfig (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/config.js:15:39)
at defaultConfig (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/config.js:11:12)
at Object. (/home/docmode/edx-20160414-2/apps/edx/edx-analytics-dashboard/node_modules/bower/lib/index.js:16:32)
at Module._compile (module.js:573:32)
make: *** [requirements.js] Error 1
The above issue arises when i run make develop..
Any help on this issue..
Whenever I open a Learners Engagement page for any particular course in Insights(hawthorn.master), it internally calls analytics-data-api endpoint at /api/v0/course_learner_metadata/{course_id} and endpoint returns JSON response containing a “date_range” under a “engagement_ranges”. (Note: I checked edx-analytics-api documentation (https://edx.readthedocs.io/projects/edx-data-analytics-api/en/latest/) but, I didn’t found API reference for same.)
So, If any learner engagement found during a week for a particular course, it gives date_range object with a valid date as follows:
“engagement_ranges”: {
"date_range”: {
“start”: “2019-07-24”,
“end”: “2019-07-31”
},
…
}
But if there is no learners activity/engagement found during a week for any particular course, it gives date_range objects with start_date and end_date as a null value.
“engagement_ranges”: {
“date_range”: {
“start”: null,
“end”: null
},
…
}
Above response is parsed by backbone js located at edx-analytics-dashboard/analytics_dashboard/static/apps/learners/roster/views/activity-date-range.js and if date_range has a start and end in response then data is parsed using Utils.formatDate() so if the date is null it gives invalid date as a response and final string is “Activity between Invalid date - Invalid date”.
There should be a condition like, if “start” and “end” is available in “date_range” dict and they have a valid date, then it should proceed to parse, else it executes else condition from ternary expression and returns “n/a” so final string should be “Activity between n/a - n/a” as per backbone test cases.
Current Codebase:
return {
startDate: _(dateRange).has(‘start’) ? Utils.formatDate(dateRange.start) : naText,
endDate: _(dateRange).has(‘end’) ? Utils.formatDate(dateRange.end) : naText
};
It should be as following:
return {
startDate: _(dateRange).has(‘start’) && ! _.isNull(dateRange.start) ? Utils.formatDate(dateRange.start) : naText,
endDate: _(dateRange).has(‘end’) && ! _.isNull(dateRange.end) ? Utils.formatDate(dateRange.end) : naText
};
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.