Cannot define shared resource with custom values in TeamCity 10.0.2 - teamcity

There are 3 options available for shared resource type:
Infinite resource
Resource with quota
Resource with custom values
I select Resource with custom values, define them in Custom values field and then save the settings. However, when I open this resource for edit, I see that the resource type went back to "Infinite resource" value.
Is this a bug or feature and does that affect functionality?

Related

WSO2 API Manager 3.2 - rewrite resources

I would like to rewrite parameters in the resources of APIs in publisher.
I need to rewrite resource /question?$top=parameter1&$select=parameter2&$filter=parameter3 to /question/parameter3?$top=parameter1&$select=parameter2.
Could you please advise?
Thanks.
You can edit the resource by editing the relevant Swagger definition. Navigate to the API Definition section in the left panel in Publisher Portal, edit the resource and update the Swagger definition with the required changes to the resource.
As per the question, you need to add paramter3 as path parameter and remove one query parameter. You can use the following swagger segment to set path parameter to the resource.
parameters:
- name: parameter3
in: path
required: true
schema:
type: string

How do I include a custom inspec resource in multiple profiles?

I have written a custom chef inspec resource to work with a proprietary configuration format that the company I work for uses. I have put the resource in the .\myprofile\libraries folder as the documentation dictates that I should[1]. However, I want to use this resource in multiple profiles without copy/pasting the same resource or symlinking the resource (I'm developing on Windows). Is there a way I can define this resource in a single location and then reference it in multiple profiles?
[1] https://www.inspec.io/docs/reference/dsl_resource/
You can create a profile with your custom resource defined there. I would suggest some profile without any controls, or with minimum amount of controls, which all depend on your custom resource.
Then in the other profiles, where you need your custom resource you can reference your fist profile in inspec.yml:
depends:
- name: my_profile_with_custom_resource
path: ../relative/path
Inplace of path can be an url or a absolute path or git url (with branch and tags). By default all the controls and custom resources defined in my_profile_with_custom_resource will be available in the new profile.

You can not complete this action for this component because of the configuration of its managed properties

I am trying to make a field optional in the Dynamics CRM
The name of the entity is Case and the internal name of the field is customerid
When I try to change it from mandatory to optional, I get the below error message
You can not complete this action for this component because of the
configuration of its managed properties.
this is happening in Dynamics CRM online
I'm pretty sure you won't be able to.
It's one of the few fields where mandatory behaviour is enforced at the platform level, whilst most mandatory fields are enforced only on the user interface.
If I remember correctly, tring to create a case without a customer via the API will result in an exception.
Looking at the managed properties for the customerid field on my recently provisioned CRM Online, shows that I'm unable to change the requirement level - I don't even get the option for setting it as optional.
I wanted to remove the field from the form, but I was not able to do it from the UI
So I used XRMToolBox.
There is a plugin called as FormXML Manager, enable it in the XRMToolBox and load the entities. Once this is done you can remove the required field and publish the form

How to define composed id for an api resource in api-platform?

I made an API resource which is not connected to a database table. I have a custom item data provider for it. I need a composed identifier for that resource. In the resource's class, I set for 3 properties the #ApiProperty(identifier=true): platform, platform version, and app version. But the generated method for getting the item has only one id. The path generated for it is /versionInfos/{id}.
Do I have any solution to make a automatically generated path like:
/versionInfos/{platform}/{platformVersion}/{appVersion}?

After creating resource on the FHIR server, how can you read its logical ID?

According to the specification here, if you create a resource the server should return a 201 created along with a Location header which contains the new Logical Id and Version Id of the created resource.
I am uploading a patient resource to http://fhir.healthintersections.com.au/open/Patient and using the Chrome debug tools I can see that a 'Content-Location' response header is returned that contains the Logical ID but I cannot access this using jqXHR.getResponseHeader('Content-Location') or jqXHR.getAllResponseHeaders().
After much searching, the problem seems to be that unless the Access-Control-Expose-Headers
header is added to server, I can't view the header within my application as it is a cross origin request.
Is there another way around this problem so I can find the logical ID after creation of a resource?
FHIR exposes it's metadata (id, version specific id, last updated) only in the headers, so you really need to get to that Location header to get a newly created resource's id. There might be a work-around, which is using the "search" operation to retrieve a feed with only this newly created resource (assuming it has identifying business keys like patient id). The resource's atom entry will have an with the id.
That said, that's truly a hack. This is not a FHIR related issue however (see for example How to get responseheader location by jquery).
To fix this problem, I'll update my FHIR server (at spark.furore.com/fhir) to include these Access-Control-Expose headers. It should be updated in the next few hours, so you can try whether that works for you.

Resources