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

Handled builds that are not associated to polled changes #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasugun
Copy link

@jasugun jasugun commented Feb 16, 2024

It sometimes happen that some submits/commits are not polled properly, just try to handle those cases.
Display basic info (rev + date) when possible.
Tells that there is no change to be found when hovering info.

I think we want to broaden what we poll to minimize the issue though.

Here is an example (left uses pr, right is vanilla)
image

Display basic info (rev + date) when possible.
? <DNEGridChange change={change}
showDetails={changeIsExpandedByChangeId.get(change.changeid) ?? false}
setShowDetails={(show: boolean) => changeIsExpandedByChangeId.set(change.changeid, show)}
/>
: "ChangeNotFound"
: changeid.length !=0 && builds.length != 0 // The change wasn't polled, pull what we can from earliest build
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this could be handled in DNEGridChangeNotFound?

@@ -3,7 +3,7 @@ import './DNEGridView.scss';
import {ObservableMap, observable} from "mobx";
import {observer, useLocalObservable} from "mobx-react";
import {Link, useSearchParams} from "react-router-dom";
import {Form} from "react-bootstrap";
import {Form, OverlayTrigger, Popover} from "react-bootstrap";
Copy link
Member

Choose a reason for hiding this comment

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

Unused imports?

placement="top"
overlay={popoverWithText("date-" + changeid, dateFormat(timestamp))}
>
<span><br/>{durationFromNowFormat(timestamp, now)}</span>
Copy link
Member

Choose a reason for hiding this comment

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

the <br/> should probably be between the two OverlayTrigger?

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.

2 participants