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

ZCS-12421: Adding tags for instance and series in appointments #1418

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

manjeetbehera
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Nov 17, 2022

CLA assistant check
All committers have signed the CLA.

@swaatiTelus swaatiTelus changed the title ZCS-12421 tag implementation ZCS-12421: Adding tags for instance and series in appointments Nov 17, 2022
@@ -18,6 +18,7 @@

import org.dom4j.Namespace;
import org.dom4j.QName;
import org.python.antlr.ast.Str;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this import required

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is not required, I have removed it.

@@ -856,6 +857,10 @@ private MailConstants() {
// messages
public static final String E_MIMEPART = "mp";
public static final String E_SUBJECT = "su";

public static final String E_OP = "op";
public static final String E_TN = "tn";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we be more descriptive with variable name

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, edited and used more descriptive variable name

setRecurrence(recurrence);
setRecurId(recurrenceId);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overload the existing constructor rather than duplicating the entire constructor code

@@ -357,6 +416,9 @@ public static Metadata encodeMetadata(Invite inv) {
}

meta.put(FN_NAME, inv.getName());
meta.put(FN_OPERATION_TYPE, inv.getOperationType());
meta.put(FN_TAG_COLOUR, inv.getTagColour());

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above line - meta.put(FN_NAME, inv.getName()); has also extra space. Still shall I remove the space. Please confirm.

@@ -579,6 +641,9 @@ public static Invite decodeMetadata(int mailboxId, Metadata meta, CalendarItem c
String name = meta.get(FN_NAME, "");
String loc = meta.get(FN_LOCATION, null);

String opType = meta.get(FN_OPERATION_TYPE,null);
String tagCol = meta.get(FN_TAG_COLOUR,null);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space, check in other part of code changes as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I have modified it.

@@ -1084,6 +1084,8 @@ private static void parseInviteElementCommon(Account account, MailItem.Type type
}

String name = element.getAttribute(MailConstants.A_NAME, "");
String operationType = element.getAttribute(MailConstants.E_OP,"");
String tagColour = element.getAttribute(MailConstants.E_TN,"");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format like
element.getAttribute(MailConstants.E_OP, "");

for both

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, modified it.

@manjeetbehera manjeetbehera force-pushed the bugfix/ZCS-12421 branch 3 times, most recently from 0a1c7b9 to c2157a5 Compare November 18, 2022 10:23
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

Successfully merging this pull request may close these issues.

3 participants