Skip to content

First sprint from AtolCD#23

Merged
49 commits merged intosigmah-dev:masterfrom
atolcd:tranche1-atol
Aug 4, 2016
Merged

First sprint from AtolCD#23
49 commits merged intosigmah-dev:masterfrom
atolcd:tranche1-atol

Conversation

@ftavin
Copy link
Copy Markdown
Contributor

@ftavin ftavin commented May 23, 2016

Mantis issues:

Tools for devs:

  • adding docker-compose.yml file
  • removal of unuseful permutations during maven compilation with sigmah-dev profile

@ghost ghost self-assigned this May 30, 2016
<class>org.sigmah.server.domain.profile.GlobalPermission</class>
<class>org.sigmah.server.domain.profile.OrgUnitProfile</class>
<class>org.sigmah.server.domain.profile.MainOrgUnitProfile</class>
<class>org.sigmah.server.domain.profile.SecondaryOrgUnitProfile</class>
Copy link
Copy Markdown

@ghost ghost May 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we have a problem here: those two classes does not exist. I guess these have been added at one point in the development process but removed later and someone forgot to remove these two lines while removing the classes themselves.

@ftavin, as the author of the commit, can you confirm? (and commit a fix)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it seems that 5 classes should be declared in this file while they are not (org.sigmah.server.domain.Framework*)

@ftavin
Copy link
Copy Markdown
Contributor Author

ftavin commented May 31, 2016

Class list fixed.

@ghost
Copy link
Copy Markdown

ghost commented May 31, 2016

Thanks!

There is a test failure which is specifically on the branch which is not on master:

-------------------------------------------------------------------------------
Test set: org.sigmah.server.servlet.importer.AutomatedImporterTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.423 sec <<< FAILURE! - in org.sigmah.server.servlet.importer.AutomatedImporterTest
testImportCorrespondances(org.sigmah.server.servlet.importer.AutomatedImporterTest)  Time elapsed: 1.857 sec  <<< ERROR!
java.lang.NullPointerException: null
    at org.sigmah.server.handler.UpdateProjectHandler.searchForConflicts(UpdateProjectHandler.java:734)
    at org.sigmah.server.handler.UpdateProjectHandler.updateProject(UpdateProjectHandler.java:184)
    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    at org.sigmah.server.handler.UpdateProjectHandler.execute(UpdateProjectHandler.java:148)
    at org.sigmah.server.handler.UpdateProjectHandler.execute(UpdateProjectHandler.java:95)
    at org.sigmah.server.handler.base.AbstractCommandHandler.execute(AbstractCommandHandler.java:117)
    at org.sigmah.server.dispatch.impl.UserDispatch.doExecute(UserDispatch.java:341)
    at org.sigmah.server.dispatch.impl.UserDispatch.access$000(UserDispatch.java:57)
    at org.sigmah.server.dispatch.impl.UserDispatch$UserExecutionContext.execute(UserDispatch.java:133)
    at org.sigmah.server.dispatch.impl.UserDispatch$UserExecutionContext.execute(UserDispatch.java:123)
    at org.sigmah.server.servlet.importer.AutomatedImporter.updateContainerWithDetails(AutomatedImporter.java:312)
    at org.sigmah.server.servlet.importer.AutomatedImporter.onContainerFound(AutomatedImporter.java:140)
    at org.sigmah.server.servlet.importer.AutomatedImporter.importCorrespondances(AutomatedImporter.java:102)
    at org.sigmah.server.servlet.importer.AutomatedImporterTest.testImportCorrespondances(AutomatedImporterTest.java:130)

The stack-trace leads to a code added in 11c3fc8:

final ProfileDTO profile = Handlers.aggregateProfiles(context.getUser(), mapper).get(project.getOrgUnit().getId());

Didn't see anything obviously wrong at first sight, @ftavin can you check it? Thanks.

@ftavin
Copy link
Copy Markdown
Contributor Author

ftavin commented Jun 1, 2016

Fixed !

@ftavin
Copy link
Copy Markdown
Contributor Author

ftavin commented Jun 3, 2016

New fix : we now have exactly the same test failure than the master branch !

ftavin and others added 23 commits June 27, 2016 09:27
Change-Id: I0281a1aec3862691e70b98f07c4358775cb85307
(refs #620)

Change-Id: I5f06a6bcf21e4a1cdfaa2995ea87441907ee4ce6
(refs #620)

Change-Id: Ic1c025b78e2c84866ba88f4361241e52a911951e
(refs #620)

Change-Id: If9268f6e8dfb82366f9b8fd11007a0dda6e49333
(refs #620)

Change-Id: If695fe64c68fa0eea8d7d40dbc1e510dc966c539
(refs #620)

Change-Id: I5713e98efccfacb6a2992e3959e130edf9d18a62
…ROJECTS

(refs #620)

Change-Id: Ic3aa1b7e802d385f22460007cc32963a2a5b7423
(refs #620)

For the moment, the team member view page rely on UserPermission data for
non owners as an automatic Hibernate filter is filtering on these data.

Change-Id: I17a6e7768196308fb56412f4b6672ff9f1e9f8fe
(refs #620)

Change-Id: I7ecc4e86f205cabbd8aea6eb2225619c804d7adc
Change-Id: Icdf69816553291e54b88643c96713448c88bc93a
(refs #620)

Change-Id: I1d38410f6c43fd5f8cc5883e2727c9c2012ab901
(refs #620)

Change-Id: Ib1b9d0bbd729bf1f082306c1ac49c86a070d9de7
(refs #620)

Change-Id: I2571f0f838ca05bad20ebf58cdd25d0ffaa99cd1
(refs #620)

Change-Id: I4396ed81ef69c88be4726f67872984b86bf0f761
(refs #620)

Change-Id: I45af397fb697f677c36a775cff9d933a12eb5990
The problem is that a project can have several OrgUnits in the database.
But concretely, the application doesn't allow this situation and the code
is already making the assumption that a project has only one OrgUnit.
But the mean to get the project's OrgUnit was not very clean so let's
make it easier.

Change-Id: Ifc628926273268b038d9c4ea1887dd9c22a16e42
(refs #243)

Change-Id: Ibc6ee1d7c1a5920bc7bce75600a601627494def8
(refs #243)

Change-Id: I750df03e831a367881879bfac71f444183352a5e
(refs #243)

Change-Id: I75171e7e9dec5696b49455582794964d6599ddaa
…y org units

(refs #243)

Change-Id: I547846f07e5bb37ef4cc52ec1901c081d625dbc1
(refs sigmah-dev#106)

Change-Id: I5e8b99679c929b1207208ad685962c2e34685ca3
"LEFT JOIN f.frameworkHierarchies fh " +
"LEFT JOIN fh.frameworkElements fe " +
"WHERE pm.id = :projectModelId " +
"AND f.availabilityStatus = 'AVAILABLE' " +
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace by HQL argument (see comment on FrameworkFulfillmentHibernateDAO)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@numero-six By a JPQL argument.

@ghost
Copy link
Copy Markdown

ghost commented Jul 28, 2016

Woaw, I've made tens of comments 😮

@ftavin no panic! I'm globally quite happy with the code and I think most of the things I've noted are secondary details that should not prevent a merge. Most of them should be fixed in seconds.

I let @osarrat see, according to the time AtolCD have and priorities, if the lil' time to spend worth it.

@osarrat
Copy link
Copy Markdown
Member

osarrat commented Jul 28, 2016

If @numero-six , you consider those changes secondary, I let @ftavin free to decide how much it is worth to work on them now. If @ftavin prefers to postpone or not work on it because workplan is too tight until release, then I will open an issue on next-but-one version to work on this.

@ghost
Copy link
Copy Markdown

ghost commented Aug 4, 2016

Merging to meet deadlines but fixes of above comments will still be welcomed

@ghost ghost merged commit 1de031d into sigmah-dev:master Aug 4, 2016
@ftavin ftavin deleted the tranche1-atol branch December 7, 2017 13:35
@atolcd-gerrit atolcd-gerrit restored the tranche1-atol branch December 12, 2017 11:28
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants