I am trying to use the TeamCity REST API of JetBrains as shown in http://confluence.jetbrains.com/display/TCD8/REST+API
I was specifically looking for a way to "Move" projects between project hierarchies. Obviously you can use the web user interface to Move a project however I need to automate this.
The REST API only talks about adding build steps, agents and so on. Is there a specific API to move a job? I tried using the Chrome Developer tools to see what happens when you move the project in a web UI but could not detect anything.
The application.wadl has methods to do most of these although the confluence page itself does not necessarily document every single feature.
To achieve this project move between different hierarchies, you had to do a PUT request to
http://$host/guestAuth/app/rest/projects/id:$project_to_edit/parentProject
with a JSON snippet (or an XML) of the form
{"id" : $new_parent_id}
Related
I am trying to write an XD plugin that dynamically populates an artboard with components, but I don't see any mention of components in the XD plugin API. Is it possible to look through the file and find available components and place them on stage? Better yet, maybe even pull a component from a specific file in the cloud?
Unfortunately, it isn't possible to create symbol instances (that's what components are called in the APIs), yet. Here is the explaining quote from the plugin docs:
It is not currently possible for plugins to create a new component definition or a new SymbolInstance node, aside from using commands.duplicate to clone existing SymbolInstances.
(https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#symbolinstance)
There is a feature request open for it in the official plugin developer forums which you can vote for. According to Steve Kwak (Adobe), however, this seems to be problematic due to the edit context, meaning it may still take a while until we get API access to that.
There, unfortunately, also, as of yet, isn't any way to list the available symbols for a document. For the other asset types, this is possible via the assets module (cf. https://adobexdplatform.com/plugin-docs/reference/assets.html), but not (yet) for symbols.
I hope this helps (although it's probably not the answer you've hoped for).
I recently thought of deep-diving into the various Spring projects, after seeing first-hand the tremendous utility provided to a project in my workplace. We used the Spring Statemachine project to implement a shopping cart lifecycle. This was a suggestion made by one of my colleagues while looking up code samples to implement the State Pattern in Java. Additionally, I've independently used Spring for Android to implement my first Android App.
However, on visiting the Spring homepage, I wasn't able to see the Spring Statemachine project listed there. Additionally, it wasn't mentioned in the offline documentation, either, despite there being a copy of the same.
I have two questions from this:
Where could one find a full listing of all the various projects provided by Spring? I tried consulting their Github page, but (for example) a filter on repos by "Kafka" returned two different repos (FYI, the project page redirects to the second URL). I was hoping for a comprehensive source like the Wikipedia page on all Apache projects
Why isn't the Statemachine project listed on the homepage? Is there some criteria which results in some projects being listed there, and some not?
Thank You
It's on its way to the main projects page as not long ago it was still kept in incubation. We're just waiting for a logo.
You generally see all projects which have created their own page in docs->Reference Documentation reference docs
I have created a custom content model within my Alfresco install using the Alfresco-Maven SDK. I have content in the repository that is stored using my custom type and properties. I have also exposed these types and properties to the advanced search, and I'm able to get results through the share interface...
Now I want to query Alfresco in the same way that I can using share's advanced search, but from an external site running on my PC. I have looked at documentation left and right, but continue just as lost on this topic.
I don't have much experience in web development, much less alfresco. It seems web scripts are the way to go, but I'm not exactly sure how to use them and the examples and tutorials haven't helped me solve this so far.
Steps involved to achieve that via webscript
Step1:Create your own webscript.
Step2:Configure webscript to accept all your custom properties as parameter.
Step3:Generate query using these properties in controller of webscript (JAVA or Alfresco javascript).
Step4:Fire query in alfresco repository using alfresco repository services.(Depends on your controlller you can use serachservice for java and search object in javascript).
Step5: Test this webscript in your browser .
Step6: Call same webscript from your other webapplication.
For details on webscripts refer this.
We have a customer waiting system where a customer can report in and sit and wait. Our advisers have another part of the system where they can see the queue and pick a customer and call them up.
In our solution we have a project for the customer sign in screen. The touch screen project is mvc and has a controller action to raise a new ticket to the database.
We then have another project that is for our advisers screens. This looks at the same database and again is MVC. There is a controller action to get latest tickets from the DB.
What I want to do is use signalr to inspect when a ticket is created by the touch screen and then report that back to the connected client machines in the advisers project.
How do I structure that? Do I create a new project called signalr that has references to both projects or do I need to put my hubs etc in one or other of the existing projects? Also is this even possible across multiple projects?
I looked in to sql dependency to track changes, but we are using EF ORM and I couldn't wire that up.
many thanks
I suggest you to take a look at the following docs,
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/introduction-to-signalr
https://github.com/SignalR/SignalR/wiki/SignalR-Client
I hope this helps.
#Dani: Those are excellent resources.
I believe what you are doing is a very plausible use case for SignalR.
To answer your first question: You don't create a SIgnalR project, per se. You add a reference to SignalR in an existing project. Therefore, it's possible to use SignalR across multiple projects.
Your project where tickets are created would probably have the full SignalR reference because it would be the one to fire off a 'broadcast' to the Advisors that are currently connected. However, the Advisors project would only need a reference to the SignalR.Client because all it would need is to connect to the SignalR hub and await new tickets.
Adding my own solution here because the current answers don't really answer how to approach setting up SignalR across projects.
I essentially had a console app that needed to talk to an MVC app, so I was confused about where to put the hub. The console can't be the hub because it doesn't have an http address that the MVC project's JavaScript can point to. The MVC project couldn't be the hub because then it would have to be referenced by the console app, which coupled the two too tightly for my liking.
The solution was to use a 3rd web api project as the hub. Example from Brad Wilson on how to do that here.I could point my JavaScript there as explained here, and the console app could make POST requests to the controller there that sends messages to the hub.
We are trying to create a portal type application with multiple / independent "sub-apps". Assuming that all sub-apps are written in Angular what is a good pattern to achieve the following goals.
Each app can be developed and deployed independent of each other.
They share a common authentication service, they can share common libraries (directives, filters etc).
Only one app will be visible and active at any given time. The scope of each sub-app is isolated from each other.
When the users goes between the sub-apps, the state is maintained as long as the user does not refresh the page or visit another static link. (I think this is built into Angular and no special effort maybe needed)
Each sub-app will have more than one views (it will have its own menu). There will be a top menu based on what sub-apps are available. Ideally the top menu is dynamically build based on what sub-apps are deployed. Maybe there is a server side component to this (the server detects the folder structure etc and determines what apps are deployed and injects the necessary js code into the page).
Given the fact that AngularJs does not have multi-level view structure, I was thinking of using multiple ng-app declarations on different divs and then using $window scope to store the key of the active app and hide the ones which are not active.
There is no easy answer to your (rather open) question, but regarding the $route and ngView limitations, I have been having great success employing a technique derived from this: http://www.bennadel.com/blog/2420-Mapping-AngularJS-Routes-Onto-URL-Parameters-And-Client-Side-Events.htm
This is something that I also have been thinking of trying to implement. While I don't have a complete working solution, I believe that this type of portal app would consist of multiple angular apps on the same page.
The portal app would be the traditional ng-app directive on the main page and the "portlets" would be dynamically created and manually bootstrapped angular apps on a sub view div. You can share data, state, authentication, personalization, etc from injecting the portal services (contained in their own module) that provide these features into the manually bootstrapped portlet apps.
The tricky part is how the portal app would discover the portlet apps and serve up their angular modules knowing that these apps would be independently deployed web apps with their own urls.
I still have some questions around if the service data would be common between the apps or if you would need to try and leverage HTML5 local storage via the portal service (like a data manager).