-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add event and event series entities #4868
base: main
Are you sure you want to change the base?
Conversation
✅ Successfully linked to Azure Boards work item(s): |
5eee26d
to
1478551
Compare
title, | ||
start, | ||
end, | ||
url: Event.pathFor(event), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use different colours for the different types of events, like for reports, where we have:
classNames: [`event-${Report.getStateForClassName(r)}`],
?
a3abfe2
to
de19400
Compare
1317b51
to
ee1028f
Compare
29b80f4
to
948880d
Compare
948880d
to
b58c5d3
Compare
b782c1e
to
2044b1c
Compare
@GraphQLQuery | ||
@GraphQLInputField | ||
Instant includeDate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeDate
appears to be unused; can it be removed?
client/src/pages/searches/Search.js
Outdated
@@ -1660,6 +1760,30 @@ const Search = ({ | |||
/> | |||
</Fieldset> | |||
)} | |||
{queryTypes.includes(SEARCH_OBJECT_TYPES.EVENTS) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not show Events search results when the withEmail filter is active.
b63f436
to
edaf108
Compare
.event-collection header { | ||
margin-bottom: 18px; | ||
} | ||
|
||
.event-collection footer { | ||
margin-top: 18px; | ||
} | ||
|
||
.event-summary { | ||
margin-top: 25px; | ||
padding-top: 15px; | ||
box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.15); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be the exact same styling already present in the main stylesheet above. Why is this here as well?
client/src/pages/events/Show.js
Outdated
import { connect } from "react-redux" | ||
import { useLocation, useParams } from "react-router-dom" | ||
import Settings from "settings" | ||
import { FORMAT_TABLE } from "../../components/ReportCollection" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please import directly from "components/ReportCollection" (joined with the import several lines above).
import mil.dds.anet.test.client.PositionType; | ||
import mil.dds.anet.test.client.Status; | ||
import mil.dds.anet.test.client.TaskInput; | ||
import mil.dds.anet.test.client.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid wildcard imports.
import java.time.Instant; | ||
import java.util.Collections; | ||
import mil.dds.anet.test.TestData; | ||
import mil.dds.anet.test.client.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid wildcard imports.
client/src/pages/events/Show.js
Outdated
} | ||
action={action} | ||
/> | ||
<Fieldset id="info" tile="Info"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the status
field?
client/src/pages/events/Form.js
Outdated
<Messages error={saveError} /> | ||
<Form className="form-horizontal" method="post"> | ||
<Fieldset title={title} action={action} /> | ||
<Fieldset> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the status
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to discuss what is the use case to decide events are active or inactive like People or Organizations, I dont think it makes any sense for events that happened in the past that you can go to edit them and make them inactive. That means they do not show up anymore in searches?
Same for events in the future, if an event gets cancelled maybe we should have the option to delete them or have a "Cancelled" status. The status field, as it is used, for other entities does not really apply that well to events.
client/src/pages/eventSeries/Show.js
Outdated
} | ||
action={action} | ||
/> | ||
<Fieldset id="info" title="Info"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the status
field?
client/src/pages/eventSeries/Form.js
Outdated
<Messages error={error} /> | ||
<Form className="form-horizontal" method="post"> | ||
<Fieldset title={title} action={action} /> | ||
<Fieldset> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the status
field?
return ( | ||
<div className={`report-preview preview-content-scroll ${className || ""}`}> | ||
<h4 className="ellipsized-text">Event {eventTitle}</h4> | ||
<div className="preview-section"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are the status
and description
fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a preview, I do not think we want to have description there in my opinion.
return ( | ||
<div className={`report-preview preview-content-scroll ${className || ""}`}> | ||
<h4 className="ellipsized-text">Event Series {eventSeriesTitle}</h4> | ||
<div className="preview-section"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are the status
and description
fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a preview, I do not think we want to have description there in my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other previews show the profile/description/biography as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I still dont think this one should.
15168e6
to
8349397
Compare
8349397
to
21fc88e
Compare
Adding two new ANET entities: event series and events.
To do:
Closes AB#1064
User changes
Superuser changes
Admin changes
System admin changes
Checklist
repo#issue: Title
title format and these 7 rules