openlab-at-city-tech / webworkqa

WeBWorK integration for WordPress and BuddyPress
GNU General Public License v2.0
4 stars 2 forks source link

Store course-specific return links for individual problems #14

Open boonebgorges opened 8 years ago

boonebgorges commented 8 years ago

Most recent mockup has a "Complete WW Problem" link. Where does this go? When on a Client site, one is always in a course context, so the link should go back to the WW course corresponding to the current site. It's not possible to concatenate this URL from available info, so we have to save it when the problem is first created. Each time a question is asked about a problem (indeed, each time an incoming WW POST arrives), we should save the referer as the WW link for that specific problem-course combo. (This will mean that viewing a problem on a course site where no one has ever asked a question about it will result in there being no "return" link, but I don't think this is a big problem, and in fact maybe we want to forbid this.)

boonebgorges commented 8 years ago

The data is currently stored, but the link is not shown because of some discrepancies in the way that the mockups distinguished between the "return to WW" link in the context of problems vs questions. (The course link is question-specific, not problem-specific.)

moui72 commented 7 years ago

nothing to test here, right? does this need design from @jspevack?

boonebgorges commented 7 years ago

Nothing to test. I ran out of time to address it.

boonebgorges commented 6 years ago

I've put some logic into place that ensures tha the return URLs are saved at the time of question creation.

But I'm not yet displaying this info. I think we'll need mockups for what these links look like and where they appear, and especially to whom they appear. In many (most?) cases, the question viewer will not have access to the WW course that the URL points to, and it seems like we wouldn't want to show the link to people who can't use it. But since we can't know from the WP point of view who has access and who doesn't, we might want to start rolling this out so that only the question author sees the "return" link. Anyway, this needs some thought - let's look at it in the summer.

boonebgorges commented 6 years ago

Given my comment above, I'm not sure this is something we can solve at the moment. For one thing, we would need more information about course membership and other metadata about courses, as well as relationships between WW users and WP users. See #119. In addition, we've got a lot of design stuff slated for Fall 2018 and don't have time at the moment to consider additional elements. Let's shelve and talk about this in a future term, when we've started to settle some of the thornier questions about WW-WP integration and data-sharing.