Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport 5.x/testing imporvements #236

Open
wants to merge 5 commits into
base: master-5.x
Choose a base branch
from

Conversation

RVanhuysseXenit
Copy link
Contributor

Testing improvements made for https://xenitsupport.jira.com/browse/ALFREDAPI-566

  • [N/A] Is CHANGELOG.md extended?
  • Does this PR avoid breaking the API?
    Breaking changes include adding, changing or removing endpoints and/or JSON objects used in requests and responses.
  • Are all Alfresco services wired via ServiceRegistry (and not per service)?
  • Does the PR comply to REST HTTP result codes policy outlined in the user guide?
  • Is error handling done through a method annotated with @ExceptionHandler in the webscript classes?
  • Does the PR follow our coding styleguide and other active procedures?
  • [] Is usage of this. prefix avoided?

See README.md for full explanation.

@RVanhuysseXenit RVanhuysseXenit self-assigned this Dec 18, 2024
@@ -2,7 +2,7 @@ version: '2'

services:
alfresco-core:
image: ${DOCKER_IMAGE}
image: ${DOCKER_IMAGE:-private.docker.xenit.eu/alfresco-enterprise/alfresco-repository-enterprise:7.0}
Copy link
Collaborator

Choose a reason for hiding this comment

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

These defaults can lead to silent failures when the image is not built. I prefer to keep them out.

@@ -23,6 +23,7 @@ ext {
jackson_version = '2.8.3'
care4alfVersion = '2.3.0'
http_version = '4.3.4' // Used by integration tests
ootbee_version = '1.2.2.0' // Used in docker image for testing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this is only used once, why not keep it locally, close to where it is used? It makes development easier since there is less switching needed.

AuthenticationUtil.runAsSystem(
() -> transactionHelper.doInTransaction(
() -> {
NodeRef companyHome = nodeLocator.getNode(CompanyHomeNodeLocator.NAME, null, null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

2 participants