Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

User Story #687 (closed)

Opened 17 years ago

Closed 17 years ago

set other groups not working correctly

Reported by: atarkowska Owned by: atarkowska
Priority: minor Milestone: 3.0-Beta2
Component: WebAdmin Keywords: n.a.
Cc: Story Points: n.a.
Sprint: n.a. Importance: n.a.
Total Remaining Time: n.a. Estimated Remaining Time: n.a.

Description

List of new groups for experimenter is implemented incorrect. There is possibility to add two the same groups to one user what gives two links in DB.

Change History (4)

comment:1 Changed 17 years ago by atarkowska

  • Resolution set to fixed
  • Status changed from new to closed

Array of experimenter group was changed by HashSet?. Now there is no possibility to add the same group two times.
Filter for choosing which groups will be add and remove is implemented by contains method.

comment:2 Changed 17 years ago by atarkowska

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 17 years ago by jmoore

         Experimenter exp_t = new Experimenter();
         exp_t.setOmeName("test-ola");
         exp_t.setFirstName("ola");
         exp_t.setMiddleName("a");
         exp_t.setLastName("AA");
         exp_t.setEmail("aa@mail.com");
         exp_t.setInstitution("some");

		//default group from DB
         ExperimenterGroup df = as.getGroup(5L);
         System.out.println("df id 5:"+df.getName());

		//other groups from DB
         ExperimenterGroup [] exg_t = new ExperimenterGroup[1];
         exg_t[0] = as.getGroup(5L);
         System.out.println("ot id 5: "+exg_t[0].getName());

         Long id = as.createExperimenter(exp_t, df, exg_t);
         System.out.println("id "+id);

		//test...
         Experimenter exp = as.getExperimenter(id);

         ExperimenterGroup [] exg = as.containedGroups(exp.getId());

         for (int i=0; i<exg.length; i++) {
         	System.out.println(exg[i].getName());
         }

Console result is:

df id 5:group name 3
ot id 5: group name 3
id 31

//test part
group name 3
group name 3

comment:4 Changed 17 years ago by atarkowska

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63818 sec.)

We're Hiring!