1. 25 May, 2017 5 commits
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      base: Person_createUserPreference must now return the created preference · fac26f62
      Jérome Perrin authored
      This changes API on a script that some projects have customized, but
      getActiveUserPreferecnce "should work" even with an old script not
      returning preferences.
      
      In that case, first call to getActiveUserPreference will create
      preference but not return it, but next time getActiveUserPreference is
      called, the preference will probably be indexed and will be returned.
      fac26f62
    • Jérome Perrin's avatar
      PreferenceTool: introduce a new getActiveUserPreference method · 4d9a8fec
      Jérome Perrin authored
      This method creates a user preference if no preference exists.
      4d9a8fec
    • Jérome Perrin's avatar
      base: drop person_interaction_workflow · d8727062
      Jérome Perrin authored
      We do not need to pre-create user preferences, especially that creating
      them too early creates one preferences for each person created in person
      module and does not allow Person_createUserPreference to create
      preference based on person's assignments are they are not created yet.
      
      We do not need to clear cache when deleting user logins anymore. This
      problem was fixed differently.
      
      Adjust tests that was relying on cache being cleared when persons ar
      deleted:
      
      testERP5Web.TestERP5Web.test_15_Check_LastModified_Header was never
      isolated from test_14.
      
      test_14 was filling Base_getWebDocumentDrivenModificationDate cache and
      this cache got clear when the persons where being deleted during
      tearDown. When removing this interaction clearing cache, we revealed
      this weakness. Choosen solution was to clear cache before checking
      response headers, to make sure we don't get something filled by a
      previous test.
      d8727062
    • Jérome Perrin's avatar
      test: small cleanup · 32aa5970
      Jérome Perrin authored
      Tests should not need to reindex modules
      32aa5970
  2. 24 May, 2017 5 commits
  3. 23 May, 2017 2 commits
  4. 22 May, 2017 7 commits
  5. 19 May, 2017 7 commits
  6. 18 May, 2017 5 commits
  7. 17 May, 2017 3 commits
  8. 16 May, 2017 6 commits