versioning

Versioning Database Persisted Objects, How would you?

被刻印的时光 ゝ 提交于 2019-11-27 17:17:46
(Not related to versioning the database schema) Applications that interfaces with databases often have domain objects that are composed with data from many tables. Suppose the application were to support versioning, in the sense of CVS, for these domain objects. For some arbitry domain object, how would you design a database schema to handle this requirement? Any experience to share? Think carefully about the requirements for revisions. Once your code-base has pervasive history tracking built into the operational system it will get very complex. Insurance underwriting systems are particularly

REST api versioning (only version the representation, not the resource itself)

一个人想着一个人 提交于 2019-11-27 16:55:57
I had a look at Best practices for API versioning? , but am not quite convinced of the answer, so I am question the versioning part again with a more specific example. I am having two URIs (one with versioning as part of the URI and one without): http://xxxx/v1/user/123 -> favored solution in discussed thread http://xxxx/user/123 I am having my doubts whether the first link expresses the idea of REST. I find http://xxxx/v1/user/123 confusing as it suggests that there will be a higher api-version someday like http://xxxx/v2/user/123 . But this does not make sense in REST terms, the api version

How can I auto increment the C# assembly version via our CI platform (Hudson)?

扶醉桌前 提交于 2019-11-27 16:42:51
Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches. We're getting a lot better with our practices via our CI platform and I'd really like to set it up to auto increment the values within the assemblyinfo.cs file so that the versions of our assemblies are auto updated with the code changes in that assembly. I had previously setup (before we found Hudson ) a way to increment the value through either msbuild or the command line (can't remember), but with Hudson, that will

API Versioning for Rails Routes

為{幸葍}努か 提交于 2019-11-27 16:33:39
I'm trying to version my API like Stripe has. Below is given the latest API version is 2. /api/users returns a 301 to /api/v2/users /api/v1/users returns a 200 of users index at version 1 /api/v3/users returns a 301 to /api/v2/users /api/asdf/users returns a 301 to /api/v2/users So that basically anything that doesn't specify the version links to the latest unless the specified version exists then redirect to it. This is what I have so far: scope 'api', :format => :json do scope 'v:api_version', :api_version => /[12]/ do resources :users end match '/*path', :to => redirect { |params| "/api/v2/

Version number of a dll in .NET

左心房为你撑大大i 提交于 2019-11-27 15:39:05
问题 Given the following: string file = @"c:\somepath\somefile.dll"; How can I find the file and product version numbers of that DLL using .NET? The dll can be either native or managed. Thanks. 回答1: Yes, using System.Diagnostics.FileVersionInfo. string fileVersion = FileVersionInfo.GetVersionInfo(file).FileVersion; string productVersion = FileVersionInfo.GetVersionInfo(file).ProductVersion; Be advised that the file version of an assembly could be different from its assembly version. The assembly

How can I implement “CSS versioning” (to solve cache issues) using JSF 2 h:outputStylesheet?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 15:03:59
问题 I'm starting to work with JSF 2 so I wanted to give a try to h:outputStylesheet. It works fine but then I tried to apply the "pattern" or trick of adding a query string to the request which changes with the file version to force browsers to fetch changes. Something like what is used here. Unfortunately I haven't been able to do it. Actually, when using that tag it doesn't generate a simple URL but a computed one which already has a query string. I've found some info about versioning of

Versioning .NET builds

烈酒焚心 提交于 2019-11-27 14:08:24
问题 Just wondering what's the best approach to versioning of .NET builds? I use: TFS 2013 for version control TFS gated check-ins Wix 3.8 to package code to MSI files I want to set version of: assemblies (AssemblyInfo.cs, or a shared one referenced in all projects) MSI packages (in Wix code) documentation (for example inside readme.txt file in the final output of the build) etc Ideal version number would allow tracing installed software back to the exact source code. Something like: <Major>.

How to use JSF versioning for resources in jar

淺唱寂寞╮ 提交于 2019-11-27 13:42:07
PF 3.5.10, Mojarra 2.1.21, omnifaces 1.5 I have a JSF library (with css files only). This library is in a .jar file. The css will be included in xhtml with <h:outputStylesheet library="mylib" name="css/mycss.css"> . In html it is rendered to the following: localhost:8080/cms/javax.faces.resource/css/mycss.css.jsf?ln=mylib CSS file of primefaces is rendered to: localhost:8080/cms/javax.faces.resource/primefaces.js.jsf?ln=primefaces&v=3.5.10 Notice the library version (&3.5.10) at the end. How can I do the same thing ? Should I write version in Manifest.mf. Or how can I use jsf-versioning in jar

Java project: should .classpath .project file be committed into repository? [duplicate]

爷,独闯天下 提交于 2019-11-27 12:39:50
问题 This question already has an answer here: .classpath and .project - check into version control or not? 7 answers Should I check in my .project and .classpath files? My friend told me that I should only check in .java files and the build.xml to guarantee portability. He said ".classpath will cause you much less portability on different environment. .project is entirely your local eclipse setting" I agree with him, but partially. -- Not checking in .project file will make my development less

Keep user's settings after altering assembly/file version

℡╲_俬逩灬. 提交于 2019-11-27 11:48:06
问题 Background I have a simple WinForms application written in C#. I debated deployment solutions for a while but ultimately decided to abandon ClickOnce as a few of the constraints were crucially restrictive. Instead, I've adapted a simple solution of versioning the application via the assembly/file versions (I keep them in sync) in the application's properties. I'm deploying via a Setup Project (*.msi). I store the latest assembly version number in an XML file online, as well as the latest