Skip to content

Feature 7 #9

Merged
merged 13 commits into from
May 19, 2019
Merged

Feature 7 #9

merged 13 commits into from
May 19, 2019

Conversation

Bobreshovr
Copy link
Contributor

No description provided.

@Bobreshovr Bobreshovr added the enhancement New feature or request label May 18, 2019
@Bobreshovr
Copy link
Contributor Author

#7

@Bobreshovr Bobreshovr requested a review from Bounz May 18, 2019 09:17
README.md Outdated
@@ -9,12 +9,21 @@ Horarium is fully based on an asynchronous work model, it allows you to run hund

Horarium supports .NET Core/netstandard 2.0 and .NET Framework 4.6.2 and later.

Support Database
Copy link
Contributor

Choose a reason for hiding this comment

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

Support Databases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


namespace Horarium.Mongo
{
[MongoEntity("scheduler.jobs")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should name this collection horarium.jobs (and collection for recurrent jobs too)?

Copy link
Contributor

Choose a reason for hiding this comment

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

what about horarium.jobs.scheduler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think horarium.jobs is better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -18,14 +16,14 @@ public class TestParallelsWorkTwoManagers : IntegrationTestBase
public TestParallelsWorkTwoManagers()
{
var provider = new MongoClientProvider(ConnectionMongo);
var collection = provider.GetCollection<JobDb>();
var collection = provider.GetCollection<JobMongoModel>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why integration test is stuck to Mongo DB provider?
Maybe we should rename the tests to reflect that these tests are for MongoDB?
Will be there same integration tests for other DB providers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should exist this test for all providers, I will add TestCase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

ExecutedMachine = ExecutedMachine,
StartAt = StartAt,
NextJob =
NextJob?.ToJobDb(),
Copy link
Contributor

Choose a reason for hiding this comment

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

New line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

};
}

[BsonId] public string JobId { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe place attribute on a new line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

README.md Outdated
| Database | Support |
| ---------- | ------------------------------------------------------------------ |
| MongoDB | Yes |
| In Memory | No [#5](https://github.com/TinkoffCreditSystems/Horarium/issues/5) |
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's write Not yet instead of No 🙂 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

<Version>1.0.0$(VersionSuffix)</Version>
<Title>Horarium.Mongo</Title>
<Authors>bobreshovr</Authors>
<PackageDescription>Horarium.Mongo is the .Net library for support MongoDB in Horarium</PackageDescription>
Copy link
Contributor

Choose a reason for hiding this comment

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

Horarium.Mongo is the .Net library for support MongoDB in Horarium

May be?

to support
or
for supporting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -30,6 +31,6 @@ public interface IHorarium: IDisposable
/// <typeparam name="TJob">Type of job, job will create from factory</typeparam>
/// <returns></returns>
IRecurrentJobBuilder CreateRecurrent<TJob>(string cron) where TJob : IJobRecurrent;

}
}
Copy link
Contributor

@mmikirtumov mmikirtumov May 18, 2019

Choose a reason for hiding this comment

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

no newline at end of file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Bobreshovr Bobreshovr merged commit cda533f into master May 19, 2019
@Bobreshovr Bobreshovr deleted the feature-7 branch May 19, 2019 16:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants