Skip to content

Commit

Permalink
Fix conflicts (#80)
Browse files Browse the repository at this point in the history
* Fix conflict

* Fix conflict
  • Loading branch information
JulienPeloton authored Sep 15, 2023
1 parent 59a5352 commit 5e54b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
10 changes: 3 additions & 7 deletions extensions/skyportal/static/js/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ import * as favoritesActions from "./ducks/favorites";
import * as rejectedActions from "./ducks/rejected_candidates";
import * as tnsrobotsActions from "./ducks/tnsrobots";
import * as enumTypesActions from "./ducks/enum_types";
<<<<<<< extensions/skyportal/static/js/actions.js
import * as shiftActions from "./ducks/shifts";
=======
import * as usersActions from "./ducks/users";
import * as streamsActions from "./ducks/streams";
import * as analysisServicesActions from "./ducks/analysis_services";
Expand Down Expand Up @@ -57,7 +54,6 @@ import * as remindersActions from "./ducks/reminders";
import * as groupActions from "./ducks/group";
import * as instrumentActions from "./ducks/instrument";
/* eslint-enable no-unused-vars */
>>>>>>> skyportal/static/js/actions.js

export default function hydrate() {
return (dispatch) => {
Expand Down Expand Up @@ -87,12 +83,12 @@ export default function hydrate() {
dispatch(defaultFollowupRequestsActions.fetchDefaultFollowupRequests());
dispatch(defaultObservationPlansActions.fetchDefaultObservationPlans());
dispatch(defaultSurveyEfficienciesActions.fetchDefaultSurveyEfficiencies());
<<<<<<< extensions/skyportal/static/js/actions.js
dispatch(shiftActions.fetchShifts());
=======
dispatch(usersActions.fetchUsers());
dispatch(streamsActions.fetchStreams());
dispatch(analysisServicesActions.fetchAnalysisServices());
>>>>>>> skyportal/static/js/actions.js
dispatch(usersActions.fetchUsers());
dispatch(streamsActions.fetchStreams());
dispatch(analysisServicesActions.fetchAnalysisServices());
};
}
14 changes: 0 additions & 14 deletions extensions/skyportal/static/js/components/RecentSources.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,12 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
<div className={styles.sourceListContainer}>
<ul className={styles.sourceList}>
{sources.map((source) => {
<<<<<<< extensions/skyportal/static/js/components/RecentSources.jsx
let recentSourceName = `${source.obj_id}`;
let grandma_source_classification = "I-care";
let confirmed_or_rejected = 'not_confirmed';
let grandma_obs_classification = null;
let obs_status = null;
=======
const recentSourceName = `${source.obj_id}`;
let classification = null;
>>>>>>> skyportal/static/js/components/RecentSources.jsx
if (source.classifications.length > 0) {
// Display the most recent non-zero probability class
const filteredClasses = source.classifications?.filter(
Expand All @@ -350,7 +346,6 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
);

if (sortedClasses.length > 0) {
<<<<<<< extensions/skyportal/static/js/components/RecentSources.jsx
const classification = sortedClasses[0].classification;
if (!rejected_classes.includes(classification) && !confirmed_classes.includes(classification) && !not_confirmed_classes.includes(classification) && !obs_classes.includes(classification)) {
recentSourceName += ` (${classification})`;
Expand Down Expand Up @@ -379,9 +374,6 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
} else if (grandma_obs_classification == 'STOP GRANDMA') {
obs_status = 'stop';
}
=======
classification = `(${sortedClasses[0].classification})`;
>>>>>>> skyportal/static/js/components/RecentSources.jsx
}

}
Expand Down Expand Up @@ -427,7 +419,6 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
</Link>
<div className={styles.sourceInfo}>
<div className={styles.sourceNameContainer}>
<<<<<<< extensions/skyportal/static/js/components/RecentSources.jsx
<span className={styles.sourceName}>
<Link to={`/source/${source.obj_id}`}>
<span className={styles.sourceNameLink}>
Expand All @@ -447,7 +438,6 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
source.ra
)} ${dec_to_dms(source.dec)}`}
</span>
=======
<Link
to={`/source/${source.obj_id}`}
className={styles.sourceName}
Expand All @@ -473,20 +463,17 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
{`\u03B4: ${dec_to_dms(source.dec)}`}
</span>
</div>
>>>>>>> skyportal/static/js/components/RecentSources.jsx
{source.resaved && <span>(Source was re-saved)</span>}
</div>
<div className={styles.quickViewContainer}>
<span style={{ textAlign: "right" }}>
{dayjs().to(dayjs.utc(`${source.created_at}Z`))}
</span>
<<<<<<< extensions/skyportal/static/js/components/RecentSources.jsx
<SourceStatus source={source} />
<SourceQuickView
sourceId={source.obj_id}
className={styles.quickViewButton}
/>
=======
<div
style={{
minHeight: "3rem",
Expand All @@ -500,7 +487,6 @@ const RecentSourcesList = ({ sources, styles, search = false }) => {
className={styles.quickViewButton}
/>
</div>
>>>>>>> skyportal/static/js/components/RecentSources.jsx
</div>
</div>
</div>
Expand Down

0 comments on commit 5e54b86

Please sign in to comment.