-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2693 from internetee/business-registry-check-for-…
…company-existing-2 Business registry check for company existing 2
- Loading branch information
Showing
32 changed files
with
1,546 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
.DS_Store | ||
/node_modules | ||
/import | ||
ettevotja_rekvisiidid__lihtandmed.csv.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
FROM internetee/ruby:3.0-buster | ||
|
||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
git \ | ||
postgresql-client \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
# # RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B | ||
# RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
# git \ | ||
# postgresql-client \ | ||
# && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN apt-get remove -y google-chrome-stable | ||
RUN apt-get purge -y google-chrome-stable | ||
RUN apt-get autoremove -y && apt-get clean | ||
|
||
ENV CHROME_VERSION="128.0.6613.137" | ||
|
||
RUN wget -q "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip" \ | ||
&& unzip chrome-linux64.zip -d /opt/ \ | ||
&& rm chrome-linux64.zip | ||
|
||
RUN wget -q "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chromedriver-linux64.zip" \ | ||
&& unzip chromedriver-linux64.zip -d /opt/ \ | ||
&& mv /opt/chromedriver-linux64/chromedriver /usr/local/bin/ \ | ||
&& rm -rf chromedriver-linux64.zip /opt/chromedriver-linux64 | ||
|
||
RUN mkdir -p /opt/webapps/app/tmp/pids | ||
WORKDIR /opt/webapps/app | ||
COPY Gemfile Gemfile.lock ./ | ||
# ADD vendor/gems/omniauth-tara ./vendor/gems/omniauth-tara | ||
RUN gem install bundler && bundle install --jobs 20 --retry 5 | ||
|
||
ENV PATH="/opt/chrome-linux64:${PATH}" | ||
|
||
EXPOSE 3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Steps to Update company_status.rake | ||
|
||
- [x] Modify the CSV output to include the contact type (role) information | ||
- [x] Filter the output to include only Estonian organization type contacts | ||
- [ ] Ensure only registrant contacts are included in the output | ||
- [ ] Remove duplicate entries for the same organization | ||
- [ ] Add a column to indicate if the contact is deleted due to an overdue annual statement | ||
- [ ] Create a separate CSV file for invalid registrant contacts | ||
- [ ] Update the existing CSV output to include only contacts that fail validation against the business registry and whitelist | ||
- [ ] Add error handling and logging for better debugging | ||
- [ ] Update the task description and comments to reflect the new functionality | ||
- [ ] Add a new rake task or option to generate the separate registrant-only CSV file | ||
- [ ] Implement validation against the business registry for Estonian organization contacts | ||
- [ ] Implement validation against the whitelist for Estonian organization contacts | ||
- [ ] Optimize the code for better performance, especially when dealing with large datasets | ||
- [ ] Add unit tests for the new functionality | ||
- [ ] Update the documentation to reflect the changes and new output format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.