Skip to content

Commit 5e7e896

Browse files
committed
Solve master changes
2 parents 9a98749 + c9d830a commit 5e7e896

File tree

7 files changed

+34
-21
lines changed

7 files changed

+34
-21
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Run `npm install -g @angular/cli` to install Angular CLI
3030

3131
You can download it from here: https://www.docker.com/get-started/ you will find the perfect Docker version for you.
3232

33-
### Chocolatey
33+
### Chocolatey (Only Windows)
3434

3535
By installing this, you'll be able to use the commands to run your proyect.
3636
You can do it by following the steps here https://chocolatey.org/install. Although the page tells you to use Powershell, you should be able to use any command line with admin permissions. Don't forget to select the "Individual button" before following the installation steps.
3737

3838
![image](https://user-images.githubusercontent.com/42116904/166069074-f76d9bd3-01b9-4c50-92e7-c7558d026783.png)
3939

40-
### Make
40+
### Make (Only Windows)
4141

4242
You will need to install Make for you to be easier setting your environment.
4343
In your command line with admin permissions run `choco install make`
@@ -46,18 +46,6 @@ In your command line with admin permissions run `choco install make`
4646

4747
In project path, open your favourite command line and run `npm install` in order to be able to run the project locally.
4848

49-
## Development server
50-
51-
Yo have 2 ways to run this project in dev mode:
52-
53-
**First**:
54-
- In your project path, open your favourite command line and run the follwing commands: `make build` then `make run` and finally `make log`. When the project is successfully compiled you can go to `http://localhost:4200/` in your browser. Remember you must have your Docker running.
55-
56-
**Second**:
57-
- Run `ng serve` to run the app in dev mode. After executing this command, you can navigate to `http://localhost:4200/` to see the app working. This method is usefull when you want to run a specific branch using less time but not recommended when doing QA.
58-
59-
In any case, the app will automatically reload if you change anything in the source files.
60-
6149
# Prepare your environment
6250

6351
### Set environment variables
@@ -87,6 +75,18 @@ Install the following extensions:
8775
- `Prettier - Code formatter`.
8876
- Go to user settings (`settings.json`) and enable formatting on save: `"editor.formatOnSave": true`.
8977

78+
## Development server
79+
80+
Yo have 2 ways to run this project in dev mode:
81+
82+
**First**:
83+
- In your project path, open your favourite command line and run the follwing commands: `make build` then `make run` and finally `make logs`. When the project is successfully compiled you can go to `http://localhost:4200/` in your browser. Remember you must have your Docker running.
84+
85+
**Second**:
86+
- Run `ng serve` to run the app in dev mode. After executing this command, you can navigate to `http://localhost:4200/` to see the app working. This method is usefull when you want to run a specific branch using less time but not recommended when doing QA.
87+
88+
In any case, the app will automatically reload if you change anything in the source files.
89+
9090
### Commit messages format
9191
Commit messages' format follows the [Conventional Commits guidelines](https://www.conventionalcommits.org/en/v1.0.0/#summary) specification,
9292
and specifically we are relying on the [Angular commit specifications](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines) to bump the [semantic version](https://semver.org/) and generate app change log.

infrastructure/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ locals {
4242
}
4343

4444
module "ui" {
45-
source = "[email protected]:ioet/infra-terraform-modules.git//azure-app-service?ref=tags/v0.0.5"
45+
#source = "../../infra-terraform-modules/azure-app-service"
46+
source = "[email protected]:ioet/infra-terraform-modules.git//azure-app-service?ref=tags/v0.0.13"
4647
app_service_name = local.service_name
4748
create_app_service_plan = local.create_app_service_plan
4849
docker_image_name = "${local.image_name}:${var.image_tag}"
@@ -52,8 +53,9 @@ module "ui" {
5253
docker_registry_username = data.terraform_remote_state.service.outputs.container_registry_admin_username
5354
location = data.terraform_remote_state.service.outputs.container_registry_location
5455
resource_group_name = data.terraform_remote_state.service.outputs.resource_group_name
55-
service_plan_kind = local.service_plan_kind
5656
service_plan_name = local.service_name
5757
service_plan_size = var.service_plan_size
5858
service_plan_tier = var.service_plan_tier
59+
hostname = "ui"
60+
dns_zone_name = data.terraform_remote_state.service.outputs.subdomain
5961
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "time-tracker",
3-
"version": "1.72.5",
3+
"version": "1.72.6",
44
"scripts": {
55
"config": "ts-node ./scripts/setenv.ts",
66
"preinstall": "npx npm-force-resolutions",

src/app/modules/reports/components/time-entries-table/time-entries-table.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('Reports Page', () => {
190190

191191
it('Should populate the users with the payload from the action executed', () => {
192192
const actionSubject = TestBed.inject(ActionsSubject) as ActionsSubject;
193-
const usersArray = []
193+
const usersArray = [];
194194
const action = {
195195
type: UserActionTypes.LOAD_USERS_SUCCESS,
196196
payload: usersArray
@@ -201,7 +201,7 @@ describe('Reports Page', () => {
201201

202202
expect(component.users).toEqual(usersArray);
203203
});
204-
204+
205205
it('The sum of the data dates is equal to {"hours": 3, "minutes":20,"seconds":0}', () => {
206206
let {hours,minutes,seconds}: TotalHours = component.sumDates(timeEntryList);
207207
expect({hours, minutes, seconds}).toEqual({hours:3,minutes:20,seconds:0});

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
361361

362362
const isStartDateInTheFuture = moment(startDateToSubmit).isAfter(moment());
363363
const isEndDateInTheFuture = moment(endDateToSubmit).isAfter(moment());
364-
const timeEntryIsInTheFuture = isStartDateInTheFuture || isEndDateInTheFuture;
364+
const timeEntryIsInTheFuture = isStartDateInTheFuture || (isEndDateInTheFuture && !this.goingToWorkOnThis);
365365

366366
if (timeEntryIsInTheFuture) {
367367
this.toastrService.error('You cannot start a time-entry in the future');

tasks.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from invoke import task
2+
3+
@task
4+
def set_environment(c, command):
5+
try:
6+
c.run('npm install')
7+
c.run('make build')
8+
c.run('make run')
9+
c.run('make logs')
10+
except:
11+
print('\n Something went wrong')

0 commit comments

Comments
 (0)