Coder Social home page Coder Social logo

gwt-front-end's Introduction

[DEPRECATED] ohmage 2.x gwt front end

As of ohmage 2.17, this tool is now considered legacy. It is suggested instead that you instead use the navbar-based setup and include micro-frontends (most are available at github.com/mobilizingcs) as you see fit.

This is the ohmage browser front end. For the associated server application, check out the ohmage server repo here.

The majority of this code is written in Java and compiled to JavaScript using the included GWT libraries. To compile the code, make sure java and javac are installed and run ant clean build buildwar. This creates a Java EE war file which can then be placed into a Servlet container. The app has been tested in Tomcat and developed using Eclipse and the associated Eclipse GWT tools.

The purpose of this app is to allow study participants and researchers to view and export data collected from the ohmage Android or MWF applications. The app also serves as a place to manage research studies and participant groups.

ohmage has been mostly highly used in research studies related to health, but it is also used as a tool to teach students computer science in a project called Mobilize. More details about how this front end application works can be found on the Mobilize wiki.

gwt-front-end's People

Contributors

johnhicks45 avatar jshslsky avatar stevenolen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

inicio vijayeluri

gwt-front-end's Issues

Document-upload document

  • There is no error message when user creates a document that is using same name with an existing one, but the file does not get uploaded.
  • If user tries to upload the same named document with the existing one, then it becomes not able to upload a file again even with a new name and proper campaigns/classes (the save action seems ignored)

M: Campaign Details: links under "Actions" do not work

Under "Campaign Details" page, the Actions section on top of the campaign detail has 2 links: "View Xml Config" and "Download Xml Config". When clicked on those links, nothing happened. The browser displayed "Waiting for dev1.mobilizingcs.org".

Campaign list filter

The 'My Role' filter of campaign list seems not working. It displays same list no matter which role has been selected.

changing password should probably take user to login screen

Since most of the application is AJAX-based, changing the password only raises an indication that the user is no longer authenticated when they make a request for new data (i.e. through a "user is not authenticated" popup). I think it would be less confusing to redirect the user to login page after changing their credentials so they can reenter them (assuming that their authentication ticket can't be updated at the time that their password is changed).

campaign download: default name

Under campaign download: download button prompts a user to save a file with default filename = campaign_name. It will be nice to add .xml extension to the default filename.

survey responses are out of order

Not sure if this is a bug per se, but I've noticed that the submitted survey prompts on the front-end appear in a different order than on the phone client. As far as I remember, the order of prompts was correct before the fix for skipped questions on Thursday.

Campaign XML View / Download

When clicking "View" for a campaign XML, it will give a "pretty print"ed version of the XML that contains newlines and spaces in the actual values of the elements. An example is this:

urn:some:campaign ...

The problem is that this is not the same as:

urn:some:campaign ...

In XML, the spaces and newlines matter. So, if someone where to use the view to copy-paste an XML or to simply use it as a template when creating a new XML, it would give the wrong impression and the server won't accept the former. However, I do like how it looks and it makes it much easier to read. If you download the XML, it is correct.

Do we want to change the view? Should the validator trim trailing white spaces? Should we leave it?

Campaign-Campaign Creation

  • Creating a campaign followed by creating another one, the field of 'Classes' holds the previous value. Thus, the campaign can be created even when user does not choose a class.

survey_response filter: ohmage.jeroen

ohmage.jeroen have the following campaign roles:

  • Mobillze_summer_2011_Sleep: all roles
  • Mobilize_summer_2011_Snack: all roles
  • Mobilize_summer_2011_Advertisement: all roles
  • CS219_May_2011_Loadtest: author

But under the survey response tab, it doesn't allow him to browse users on the filtering section.

Quick Filters on the Campaigns menu

  • The items on Quick Filters are not working such as "Active last week", "Active last two weeks", "Active last month", and "Authored by Me".(Used ID: jefferson.baa)
    • in the "Browser Campaigns" page, clicking the buttons on Quick Filters has no response.
    • in the "Campaign Details" page, clicking the buttons on Quick Filters has no response.
  • It will be good if there is information about the activated time of campaigns in the campaign detail page. (since there are time based filters.(e.g., 'Active last week'))

Campaign creation - xml file validation

  • I downloaded a XML file from an existing campaign, and edited the URN part of the XML slightly. I tried to create a new campaign with the edited file, which should be a 'good' XML, but I got an error message like "cvc-pattern-valid: Value ' urn:campaign:ca:lausd:Jefferson:ECS:May:2012:Advertisement ' is not facet-valid with respect to pattern '.[^\s].' for type 'NonEmptyString'."
  • The error messages are accumulated whenever try to create new campaign with good or bad XML files multiple times.
    Error message is "0804: Invalid campaign XML. cvc-pattern-valid: Value ' urn:campaign:ca:lausd:Jefferson:ECS:May:2011:Advertisement ' is not facet-valid with respect to pattern '.[^\s].' for type 'NonEmptyString'. cvc-pattern-valid: Value ' urn:campaign:ca:lausd:Jefferson:ECS:May:2011:Advertisement_test ' is not facet-valid with respect to pattern '.[^\s].' for type 'NonEmptyString'. cvc-pattern-valid: Value ' urn:campaign:ca:lausd:Jefferson:ECS:May:2011:Advertisement_test ' is not facet-valid with respect to pattern '.[^\s].' for type 'NonEmptyString'."

feature: allow users to change name of existing campaign

  • system needs to enforce that the name in the db and the name in the xml file are the same (right now the name can be changed in the xml config but it is not updated in the db)
  • originally there was a requirement that if user uploads an xml file with a new name, they should be prompted by the system before overwriting the existing name, but this requires an extra back and forth with the server since the browser can't read files directly from the user's computer...

Relative paths

The webpage contains many absolute paths, which do not work when the application is deployed in any path other than root. Please fix this, and double check if i works by deploying it at e.g. www.server.com/AndWellness

participant sees stopped campaign error msg on response tab

A user who is a participant (and no other role) of a stopped campaign always sees error 0716 about trying to view a stopped campiagn on the responses tab. This error should be ignored by the front end when user is viewing all responses and only displayed if the user has selected the stopped campaign from the campaign filter.

(bug reported by @jinhakang)

Document - submenu

My Documents | Browse Documents | Upload

  • Above submenu buttons are not working.

Document-document list

  • User "jefferson.bab" has created a shared document associated with the campaign of "urn:campaign:ca:lausd:Jefferson:ECS:May:2011:Advertisement"
    and the class of "urn:class:ca:lausd:Jefferson:ECS:May:2011".

    User "jefferson.baa" is a supervisor of that campaign but its document list is empty.

survey_response filter: survey list doesn't get updated when campaign is set to All

Under the survey response filter, when a specific campaign was selected, the survey list got updated properly. But afterword, when "All" campaign was selected, the survey list displayed whatever survey list that was last seen.. e.g.
campaign=Sleep, survey list = All, Sleep Patter, Sleep Impact
campaign=Snack, survey list=All, Snack
campaign=All, survey list=All, Snack

tested with ohmage.jeroen.

Cannot see user's personal information when viewing a class' details

When viewing a class' details, if I am privileged I can see the username list and who among them is privileged, and if I am a restricted user I can only see the username list without seeing who else is privileged or not. I cannot see any more specific information about the user as in first name, last name, etc.

This can be done through /user/read and passing in a the classes URN as the class_urn_list parameter.

Responses-Image display

This is not a bug, but I think it would be great if we can improve it.

Images on the responses tab do not fit into the size-fixed frame. I could scroll up and down but still I was not able to see each image fully. The images were taken from Galaxy S.

Used ID: ohmage.ooms
Used Browser: Chrome 12.0.742.100

document filtering: nice to have features

It will be nice to have the following features:

  • add creator name to the document list
  • provide document filtering functionality based on document creator, class, campaign and maybe date range.

configuration file

Please use a configuration file for server options (like the AndWellness server url), rather than hardcoding it in the java code.

Campaigns-Adding authors

  • I logged in as 'ohmage.ooms'. When I clicked the 'Add Authors' button, I could not find 'jefferson.baa' and 'jefferson.bab' in the list. However, somehow I could see both of them after I added 'jefferson.bac' as an author.
  • It would be great if the member list that you can see after clicking 'Add Authors' is sorted.

Change Password Does Nothing

The change password section doesn't appear to have any effect.

It need to:

  • Give an error if the old password is wrong.
  • Give an error if the two passwords don't match.

Campaign-ACL case of campaign state=shared, survey_response=shared

In the case of ECS_May_2011_Media
campaign state=shared
survey_response=shared

  • I set jefferson.bac as an author of 'ECS_May_2011_Media'.
    • jefferson.bab has a Shared response, but jefferson.bac cannot see it on his responses page.
  • I set both jefferson.bab and jefferson.bac just participants of 'ECS_May_2011_Media'.
    • jefferson.bab has a Shared response, but jefferson.bac cannot see it on his responses page.

Dashboard-summaries

  • Dashboard shows a message "You have 8 survey responses waiting to be shared or deleted.", while the user has one survey response." (used ID: jefferson.bab)
    display the number of participating active campaigns
  • It shows a message "You are participating in 5 active campaigns.", while the user has one active campaign. (used ID:jefferson.bab)
    display the number of running active campaigns
  • It shows a message "You are running 3 active campaign.", while the user does not run any campaign. (used ID:jefferson.bab)

survey_response filter: sort list based on login_id

can we sort participant drop-down list based on alphabetical order of the login_id? This will make it easier for find specific login.
can we also sort campaign drop-down list based on alphabetical order?

Document-size of file

  • Size of a file is incorrect. It shows 7163 MB while it should be 7163 KB. (Used ID: jefferson.baa)

update filter params to make end date inclusive

Was server issue #36.

Currently, the end_date is exclusive. This should be changed to be inclusive.

joshuaselsky commented:
This is actually not a bug. I am using the BETWEEN operator in the SQL, which behaves exactly the same as timestamp >= t1 and timestamp <= t2. The issue is that for t2, MySQL is being very strict. If t2 was 2011-06-18, it will only return results up to 2011-06-18 at midnight. Using >= t1 and <= t2 generates the same results. So, if you want data for e.g., 2011-06-18 after midnight and for the whole day, you have to make the end_date be equal to 2011-06-19

Campaigns-Editing campaigns by authors

  • jefferson.bac is an author of ECS_May_2011_Media but not supervisor, but he gets error message when he tries to edit the campaign. (I guess this is not right)
    • Error message: "There was a problem creating in the campaign." with "0103: general error"
  • ohmage.ooms is a supervisor and he can edit the campaign without errors. (I assume this is right.)

Document-edit

Previous status=> Linked Campaigns:Empty, Linked Class: urn:class:ca:lausd:Jefferson:ECS:May:2011

  • I added a campaign through "Edit Document" page and clicked Save, but the change does not appear in the 'Document Detail' page.
  • I deleted the existing Class, added a Campaign, and clicked Save. Page has reloaded without error messages but the change does not appear on the 'Document Detail' page.

H: campaign export button doesn't work

Under campaign list, when clicked on export link nothing happened. The browser status bar at the bottom left of the browser displayed "waiting for dev1.mobilizingcs.org...".

Document-document details

  • "<<Go to document list" button on the Document Details page is not working. (Used ID:jefferson.baa, Web browser:Chrome 12.0.742.91)

H: Document upload: save button asks for a file name to save file

Under document upload, after setting all the properties including linking the document to campaign and class, when clicked "save", the system prompted the user to choose a file to save to but the document got saved into the system. The file content is the following json string..
{"result":"success","document_id":"d1844732-c829-44b2-a9d7-aabe76249a08"}

However, if link campaign/class wasn't set, the system returned to the document list without saving the document or reporting any error messages.

Campaign-Campaign Creation error message

Error message from previous trial of creating campaigns stays there even when I click 'Create Campaign' again and also when the error is not valid any more. The error message here means the one embedded on the page not the pop-up one.
Once I get the error message, then the error message also appears on the already create campaign's edit page.

Error message:
Campaign could not be saved. »hide
Campaign must belong to at least one class.

Document-document 'Create on' time stamp

  • The timestamp of 'Created On' is updated even when I change the Privacy status of the document. I think the timestamp should be updated only when the document is uploaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.