-
Notifications
You must be signed in to change notification settings - Fork 8
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
Gafetinov/upgrade for diadoc #39
Conversation
0dd399e
to
eeed1ce
Compare
Cassandra.DistributedTaskQueue/Configuration/RtqTaskDataRegistryBase.cs
Outdated
Show resolved
Hide resolved
Cassandra.DistributedTaskQueue/Configuration/RtqTaskDataRegistryBase.cs
Outdated
Show resolved
Hide resolved
cassandra-distributed-task-queue-ui/src/components/TaskTable/TaskDetails/TaskDetails.tsx
Show resolved
Hide resolved
6ca9ffd
to
4c7504b
Compare
Cassandra.DistributedTaskQueue/Cassandra/Entities/TaskMetaInformation.cs
Outdated
Show resolved
Hide resolved
19a55df
to
a6456eb
Compare
|
||
const CustomSettingsContext = createContext<ICustomSettings>(defaultValue); | ||
|
||
export const CustomSettingsProvider = ({ |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
его и таскать везде проще, он уже много где прокинут, не нужен будет новый контекст
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.
Не захотелось их в один класс потому что это независящие друг от друга штуки.
И в edi они не нужны, если их в класс положить, то придется все равно в edi прописывать эти методы после обновления. А так можно просто обновиться и не париться.
А по поводу контекста, хотелось убрать лишние прокидывания пропсов
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.
независящие, но они в целом про одно и то же: кастомизацию для ui очереди задач
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.
в целом и так сойдет конечно
const executionTime = ticksToMilliseconds(executionDurationTicks); | ||
console.log(executionTime); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
renderRow("ExpirationModificationTime", expirationModificationTicks, renderDate), | ||
renderRow("LastModificationTime", lastModificationTicks, renderDate), | ||
renderRow("Attempts", attempts.toString()), | ||
renderRow("ParentTaskId", parentTaskId, parentTaskId => ( |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
}; | ||
|
||
const handleCheckAll = () => { | ||
if (isAllTasksChosen) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
для галочки "Выбрать все на странице"
cassandra-distributed-task-queue-ui/src/components/TaskStatesSelect/TaskStatesSelect.tsx
Outdated
Show resolved
Hide resolved
cassandra-distributed-task-queue-ui/src/components/TaskTable/TaskDetails/TaskDetails.styles.ts
Show resolved
Hide resolved
<tr key={"ParentTaskId"}> | ||
<td>{"ParentTaskId"}</td> | ||
<td data-tid={"ParentTaskId"}> | ||
<RouterLink to={`../${parentTaskId}`}>{parentTaskId}</RouterLink> |
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.
тут если parentTaskId == null, то не надо рендерить же <RouterLink, раньше так было
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.
Поправил
Апгрейд для Диадока: