You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by GitBox <gi...@apache.org> on 2022/03/08 08:54:33 UTC

[GitHub] [sling-org-apache-sling-distribution-journal-messages] tmaret commented on a change in pull request #9: SLING-10585 - Add INVALIDATE package message type

tmaret commented on a change in pull request #9:
URL: https://github.com/apache/sling-org-apache-sling-distribution-journal-messages/pull/9#discussion_r821448168



##########
File path: src/main/java/org/apache/sling/distribution/journal/messages/PackageStatusMessage.java
##########
@@ -47,7 +47,11 @@
         /**
          * The package has been imported
          */
-        IMPORTED(2);
+        IMPORTED(2),
+        /**
+         * The package invalidated the cache
+         */
+        INVALIDATED(3);

Review comment:
       I think that we should remove the `INVALIDATED` status and only use `IMPORTED` because the handling of `INVALIDATED` and `IMPORTED` should be the same in https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/101
   
   To be semantically correct, we should `s/IMPORTED/APPLIED` but we can't easily change that. I suggest to keep the `IMPORTED` constant but extend the JavaDoc with something along the lines of
   
   ```
   The package has been applied
   ``` 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org