Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • anis/anis-client
1 result
Show changes
Commits on Source (7)
......@@ -6,7 +6,7 @@ stages:
- deploy
variables:
VERSION: "3.1"
VERSION: "3.3.0"
SONARQUBE_URL: https://sonarqube.lam.fr
CONTAINER_IMAGE: portus.lam.fr/anis/anis-client
COVERAGE_IMAGE: portus.lam.fr/anis/anis-client-coverage
......
......@@ -6,21 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [3.3.0] - 2020-06
### Added
- #90 => Dynamic documentation to explain how to export results via server urls
- #88 => Search by cone search
- #96 => Search by id list
- #93 => Auto select dataset if only one present
- #91 => Download results buttons colors can be changed
- #89 => Name resolver added to cone search
### Fixed
- #94 => Home redirection to project base href
- #90 => Dynamic documentation to explain how to export results via server urls
- #95 => Search by list
### Changed
- #91 => Download results buttons colors can be changed
- #92 => Improvement of sonarqube quality
- #93 => Auto select dataset if only one present
- #94 => Home redirection to project base href
- #96 => Improve search summary design
### Security
## [3.2.0] - 2020-04
### Added
......
3.3
\ No newline at end of file
3.3.0
\ No newline at end of file
......@@ -6,8 +6,13 @@ import * as fromDocumentation from '../store/documentation.reducer';
import * as documentationActions from '../store/documentation.action';
import { DATASET, ATTRIBUTE_LIST } from 'src/settings/test-data';
import { Dataset, Attribute } from 'src/app/metamodel/model';
import { ScrollTopService } from '../../shared/service/sroll-top.service';
describe('[Documentation] Component: DocumentationComponent', () => {
let scrollTopServiceStub: Partial<ScrollTopService> = {
setScrollTop() {}
};
let component: DocumentationComponent;
let fixture: ComponentFixture<DocumentationComponent>;
let store: MockStore;
......@@ -16,7 +21,10 @@ describe('[Documentation] Component: DocumentationComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [ DocumentationComponent ],
providers: [ provideMockStore({ initialState }) ]
providers: [
provideMockStore({ initialState }),
{ provide: ScrollTopService, useValue: scrollTopServiceStub }
]
});
fixture = TestBed.createComponent(DocumentationComponent);
component = fixture.componentInstance;
......
......@@ -8,6 +8,7 @@ import * as fromDocumentation from '../store/documentation.reducer';
import * as documentationSelector from '../store/documentation.selector';
import { Dataset, Attribute } from 'src/app/metamodel/model';
import { environment } from '../../../environments/environment';
import { ScrollTopService } from "../../shared/service/sroll-top.service";
@Component({
selector: 'app-documentation',
......@@ -23,7 +24,7 @@ export class DocumentationComponent implements OnInit {
public attributeListIsLoaded: Observable<boolean>;
public attributeList: Observable<Attribute[]>;
constructor(private store: Store<{ documentation: fromDocumentation.State }>) {
constructor(private store: Store<{ documentation: fromDocumentation.State }>, private scrollTopService: ScrollTopService) {
this.datasetListIsLoading = store.select(documentationSelector.getDatasetListIsLoading);
this.datasetListIsLoaded = store.select(documentationSelector.getDatasetListIsLoaded);
this.datasetList = store.select(documentationSelector.getDatasetList);
......@@ -34,6 +35,7 @@ export class DocumentationComponent implements OnInit {
ngOnInit() {
this.store.dispatch(new documentationActions.RetrieveDatasetList());
this.scrollTopService.setScrollTop();
}
getDatasetAttributes(dataset: Dataset, attributeList: Attribute[]): Attribute[] {
......
......@@ -88,7 +88,7 @@ export class DecComponent {
if (hh < 0) {
deg = -deg;
}
this.decDegree.setValue(+deg.toFixed(2));
this.decDegree.setValue(+deg.toFixed(8));
}
decChange(prop: string): void {
......
......@@ -84,7 +84,7 @@ export class RaComponent {
const hh = +this.raH.value;
const mm = +this.raM.value;
const ss = +this.raS.value;
const deg = +(((((ss / 60) + mm) / 60) + hh) * 15).toFixed(2);
const deg = +(((((ss / 60) + mm) / 60) + hh) * 15).toFixed(8);
this.raDegree.setValue(deg);
}
......