Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.0.6.1 makes IssueCustomField.Info readonly breaking existing usage #253

Closed
Knitter opened this issue Feb 24, 2020 · 6 comments
Closed

Comments

@Knitter
Copy link

Knitter commented Feb 24, 2020

Hi,

I'm not sure how to migrate to the new version as it makes some fields readonly that were previously used to create or update data. e.g. how should we now update the value of an IssueCustomField with .Info?

I didn't find an issue or wiki related to this question so bit uncertain what is the expected upgrade path

@AlexeyMAGician
Copy link
Contributor

+1
@zapadi, I have the same question!
Most base classes like "Identifiable", now have "protected internal set" for "Id".
How it use?

@KEMAL-YILDIRIM
Copy link

I am having the same issue and overcome it by

public class RedmineIdentifiableName : IdentifiableName
	{
		public RedmineIdentifiableName(int id)
		{
			base.Id = id;
		}

	}

@muffmolch
Copy link

muffmolch commented Mar 9, 2020

same here ... why????
How can we update custum fields in v3.x?

@zapadi
Copy link
Owner

zapadi commented Mar 17, 2020

+1
@zapadi, I have the same question!
Most base classes like "Identifiable", now have "protected internal set" for "Id".
How it use?

The idea behind removing most of the setters is to follow the serialization process. If the properties of a redmine entity are not expected by the server, those properties should not have public setters.
The case of identifiable is the same: the ids are assigned by the server.

One of the solutions, for the moment, is to do it like @KEMAL-YILDIRIM did.

If you have a better idea or approach, please, let me know.

@derek2132
Copy link

I had the same problem when using this .
I did a seach first and then assign the value to the new one .
I'm tied.

@derek2132
Copy link

public class RedmineIdentifiableName : IdentifiableName
{
public RedmineIdentifiableName(int id)
{
base.Id = id;
}

}

Good job!

@zapadi zapadi closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants