• Franck Lewis
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi, 
jason lantz (SF) proposes a free tool to do continuous integration with Jenkins that looks great.But I have issue to implement. 
I'm up to the point where webhooks are created on Git, and push notifications are sent to mrBelvedere (I see them), but no job is triggered. 
(The last trigger date under branch job trigger is empty)
Also, In mrBelvedere doc, it says git URL format must be git@github.com/user/repo, but it seems git forces a url as git://github.com/user/repo... 
I can't find anything on the net on this. 
Thanks a lot for your experience and advices here.
Please join this post if you work with those tools as well to share experience

 
Sorry for the hijack, I can't create my own post.

Error: 
Ensure that you implement all the pagination methods using the corresponding StandardSetController methods.

I am having an issue with validating the ext.getTotalPages method.
 
/**
     * @name GetTotalPages
     * @description
    **/
    public Integer getTotalPages(){
        return ((Decimal)this.standardSetController.getResultSize() / (Decimal)Constants.DEFAULT_ROWS).round(System.RoundingMode.CEILING).intValue();
    }

Here is my method toSetStandardSetController 
 
private void setStandardSetController() {
        if (this.selectedFamily != Constants.SELECT_ONE && this.selectedFamily != null) {
            this.standardSetController = new ApexPages.StandardSetController(Database.getQueryLocator([
                    SELECT
                            Id,
                            Product2.Name,
                            Product2.Family,
                            Product2Id,
                            UnitPrice,
                            Product2.Quantity_Remaining__c
                    FROM
                            PricebookEntry
                    WHERE Product2.IsActive = true
                    AND Product2.Family =: this.selectedFamily

            ]));
        } else {
            this.standardSetController = new ApexPages.StandardSetController(Database.getQueryLocator([
                    SELECT
                            Id,
                            Product2.Name,
                            Product2.Family,
                            Product2Id,
                            UnitPrice,
                            Product2.Quantity_Remaining__c
                    FROM
                            PricebookEntry
                    WHERE Product2.IsActive = true
            ]));
        }

        this.standardSetController.setPageSize(Constants.DEFAULT_ROWS);
    }

 

I predominantly use system.debug to print out debug messages. I have noticed recently that if the LogLevel for apex code is set to debug, there are several messages printed in the log such as the following. These messages seems irrelevant and obscure the real messages.

08:47:01.221 (221465000)|ENTERING_MANAGED_PKG|
08:47:01.223 (223142000)|ENTERING_MANAGED_PKG|
08:47:01.223 (223247000)|ENTERING_MANAGED_PKG|
08:47:01.223 (223283000)|USER_DEBUG|[25]|ERROR|Entering Insert

 

I have resorted to using

System.debug(Logginglevel.ERROR, 'Message') and  setting the loglevel of ERROR to prevent these messages from showing. However, I was wondering if there was any other means to suppress these messages (without changing log level). Frankly these messages seem to be useless since they are not conveying anything at all.

  • May 29, 2012
  • Like
  • 0