When should the CUB be updated?

I understand the CUB helps build Cobalt urls, however, when should we update the CUB? Are CUB changes needed when updating url parameters, or adding new endpoints, or when?

Best Answer

  • The CUB should be updated whenever a public HTTP contract changes in **Website**. This means that whenever any of the following things happen within Website, the CUB should be updated: - A developer makes a change to a controller method in Website (adds or removes a parameter, changes the name of a parameter, etc) - When an endpoint is added or removed from a Product.cs file or the Global.asax.cs file - When a name change is made to an endpoint (ex: changing an endpoint name from "Rest.Something" to "Rest.SomethingElse") - When a URL/request parameter is changed from "optional" to "required" Realistically, the CUB doesn't need to be updated *every* time one of these things happen, as there are many endpoints/pages within Website that aren't used by the CUB or any of its clients. However, updating the CUB frequently will help avoid many issues and will catch bugs earlier. Here are good directions/details on how to update the CUB: [
    http://nsawiki.int.westgroup.com/wiki/index.php5/Update_the_Url_Builder_%28CUB%29][1] [1]:
    http://nsawiki.int.westgroup.com/wiki/index.php5/Update_the_Url_Builder_%28CUB%29