Admin UI Scheduler creates duplicate series when more than 20 series exist

Steps to reproduce

Steps to reproduce:
1. Create a lot of series in Matterhorn
2. Schedule a recording, and select a series from the drop down that was created after the first 20 series. The drop down queries for 50 titles, so a max of 50 series should show up in the list.
3. On submit, a non-count param'ed series query is made that truncates the results to 20 series (SeriesRestService.DEFAULT_LIMIT). If the selected series title is not found amount the 20 results, a new series is created from the selected title.

Actual Results: New series is associated to the recording, but an existing series was desired. Lots of new series with the same title but different id.

Expected Results: The recording is associated to the desired series, not a new one.

Workaround (if any):
Modify the page to preserve the series Id when a series is selected from the dropdown. Check if the series id was preserved before doing a "checkForExistingSeries" during schedule submit. Alternatively, use the same count param in both series queries so that the same subset of series are used in the dropdown selection and the check to see if the user selected from the dropdown selection.

Activity

Show:
h
August 30, 2013, 6:23 PM

Hi Karen,

We just noticed you posted this bug report and are also having problems here WRT duplicate series and failed recordings.

Do you know if you'll be posting a bug fix today?

We are wondering whether we should either try to fix our codebase, or just purge old series to get them below the threshold.

thanks,
Harry

h
August 30, 2013, 7:55 PM

Thanks Karen!
From: Karen Dolan <[1]kdolan@dce.harvard.edu>
Date: Friday, August 30, 2013 3:46 PM
To: "Levinson, Harold" <[2]harry_levinson@harvard.edu>
Cc: "Greg Logan (JIRA)" <[3]jira@opencast.jira.com>
Subject: Fwd: [JIRA] () Admin UI Scheduler creates duplicate series when more than 20 series exist

Harry,
Attached is the file with the two small fixes that 've been testing. Feel free to code review the changes or test too. I plan on committing it when I get home today.

Best,Karen
Begin forwarded message:
From: "Harry Levinson (JIRA)" <[4]jira@opencast.jira.com>
Subject: [JIRA] () Admin UI Scheduler creates duplicate series when more than 20 series exist
Date: August 30, 2013 2:25:04 PM EDT
To: [5]karen_dolan@harvard.edu

   [ [6]https://opencast.jira.com/browse/MH-9842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35626#comment-35626 ]

Harry Levinson commented on MH-9842:
------------------------------------
Hi Karen,

We just noticed you posted this bug report and are also having problems here WRT duplicate series and failed recordings.

Do you know if you'll be posting a bug fix today?

We are wondering whether we should either try to fix our codebase, or just purge old series to get them below the threshold.

thanks,
Harry

Admin UI Scheduler creates duplicate series when more than 20 series exist
--------------------------------------------------------------------------
               Key:
               URL: [7]https://opencast.jira.com/browse/MH-9842
           Project: Matterhorn Project
        Issue Type: Bug
        Components: Administrative Tools
  Affects Versions: 1.4
          Reporter: Karen Dolan


This message was sent by Atlassian JIRA
(v6.1-OD-06#6139)

---------------------------------------------------------------------------------------- [1] kdolan@dce.harvard.edu
[2] harry_levinson@harvard.edu
[3] jira@opencast.jira.com
[4] jira@opencast.jira.com
[5] karen_dolan@harvard.edu
[6] https://opencast.jira.com/browse/MH-9842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35626#comment-35626
[7] https://opencast.jira.com/browse/MH-9842

Former user
September 2, 2013, 3:58 AM

Greg, should I create a code review? Thanks, Karen

Former user
September 3, 2013, 2:24 PM

Hi Greg! Read for review - K

Greg Logan
September 9, 2013, 8:01 AM

Looks good to me, merged into 1.4.x with rev 15623.

Fixed and reviewed

Assignee

Former user

Reporter

Former user

Severity

Data Loss/Corruption

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure